This repository has been archived by the owner on Jun 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f6a6bf
commit 5c59e35
Showing
5 changed files
with
90 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,21 @@ | ||
# Contributing to ActiveShipping | ||
|
||
We welcome fixes and additions to this project. Fork this project, make your changes and submit a pull request! | ||
We love receiving pull requests! Anything from new carriers to documentation fixes. | ||
|
||
### Code style | ||
## Standards | ||
|
||
Please use clean, concise code that follows Ruby community standards. For example: | ||
* PR should explain what the feature does, and why the change exists. | ||
* PR should include any carrier specific documentation explaining how it works. | ||
* Code _must_ be tested, including both unit and remote tests where applicable. | ||
* Be consistent. Write clean code that follows Ruby community standards. | ||
* Code should be generic and reusable. | ||
|
||
- Be consistent | ||
- Don't use too much white space | ||
- Use 2 space indent, no tabs. | ||
- No spaces after `(`, `[` and before `]`, `)` | ||
- Nor too little | ||
- Use spaces around operators and after commas, colons and semicolons | ||
- Indent when as deep as case | ||
- Write lucid code in lieu of adding comments | ||
If you're stuck, ask questions! | ||
|
||
### Pull request guidelines | ||
## How to contribute | ||
|
||
- Add unit tests, and remote tests to make sure we won't introduce regressions to your code later on. | ||
- Make sure CI passes for all Ruby versions and dependency versions we support. | ||
- XML handling: use `Nokogiri.XML` for parsing XML, and `Nokogiri::XML::Builder` to generate it. | ||
- JSON: use the JSON module that is included in Rubys standard ibrary | ||
- HTTP: use `ActiveUtils`'s `PostsData`. | ||
- Do not add new gem dependencies. | ||
|
||
### Contributors | ||
|
||
- James MacAulay (<http://jmacaulay.net>) | ||
- Tobias Luetke (<http://blog.leetsoft.com>) | ||
- Cody Fauser (<http://codyfauser.com>) | ||
- Jimmy Baker (<http://jimmyville.com/>) | ||
- William Lang (<http://williamlang.net/>) | ||
- Cameron Fowler | ||
- Christopher Saunders (<http://christophersaunders.ca>) | ||
- Denis Odorcic | ||
- Dennis O'Connor | ||
- Dennis Theisen | ||
- Edward Ocampo-Gooding | ||
- Isaac Kearse | ||
- John Duff | ||
- Nigel Ramsay | ||
- Philip Arndt | ||
- Vikram Oberoi | ||
- Willem van Bergen | ||
1. Fork it ( https://github.com/Shopify/active_shipping/fork ) | ||
2. Create your feature branch (`git checkout -b my-new-feature`) | ||
3. Commit your changes (`git commit -am 'Add some feature'`) | ||
4. Push to the branch (`git push origin my-new-feature`) | ||
5. Create a new Pull Request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,32 @@ | ||
lib = File.expand_path('../lib/', __FILE__) | ||
lib = File.expand_path("../lib/", __FILE__) | ||
$:.unshift(lib) unless $:.include?(lib) | ||
|
||
require 'active_shipping/version' | ||
require "active_shipping/version" | ||
|
||
Gem::Specification.new do |s| | ||
s.name = "active_shipping" | ||
s.version = ActiveShipping::VERSION | ||
s.platform = Gem::Platform::RUBY | ||
s.authors = ["James MacAulay", "Tobi Lutke", "Cody Fauser", "Jimmy Baker"] | ||
s.email = ["[email protected]"] | ||
s.homepage = "http://github.com/shopify/active_shipping" | ||
s.summary = "Simple shipping abstraction library" | ||
s.description = "Get rates and tracking info from various shipping carriers. Extracted from Shopify." | ||
s.license = 'MIT' | ||
s.name = "active_shipping" | ||
s.version = ActiveShipping::VERSION | ||
s.platform = Gem::Platform::RUBY | ||
s.authors = ["Shopify"] | ||
s.email = ["[email protected]"] | ||
s.homepage = "http://github.com/shopify/active_shipping" | ||
s.summary = "Simple shipping abstraction library" | ||
s.description = "Get rates and tracking info from various shipping carriers. Extracted from Shopify." | ||
s.license = "MIT" | ||
s.files = `git ls-files`.split($/) | ||
s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) } | ||
s.test_files = s.files.grep(%r{^(test|spec|features)/}) | ||
s.require_path = "lib" | ||
|
||
s.add_dependency('quantified', '~> 1.0.1') | ||
s.add_dependency('activesupport', '>= 3.2', '< 5.1.0') | ||
s.add_dependency('active_utils', '~> 3.2.0') | ||
s.add_dependency('nokogiri', '>= 1.6') | ||
s.add_dependency("quantified", "~> 1.0.1") | ||
s.add_dependency("activesupport", ">= 3.2", "< 5.1.0") | ||
s.add_dependency("active_utils", "~> 3.2.0") | ||
s.add_dependency("nokogiri", ">= 1.6") | ||
|
||
s.add_development_dependency('minitest') | ||
s.add_development_dependency('rake') | ||
s.add_development_dependency('mocha', '~> 1') | ||
s.add_development_dependency('timecop') | ||
s.add_development_dependency('business_time') | ||
s.add_development_dependency('pry') | ||
|
||
s.files = `git ls-files`.split($/) | ||
s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) } | ||
s.test_files = s.files.grep(%r{^(test|spec|features)/}) | ||
s.require_path = 'lib' | ||
s.add_development_dependency("minitest") | ||
s.add_development_dependency("rake") | ||
s.add_development_dependency("mocha", "~> 1") | ||
s.add_development_dependency("timecop") | ||
s.add_development_dependency("business_time") | ||
s.add_development_dependency("pry") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters