consumerable 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9d5f8170c3d34ec7da8bf6f91ab1cc6bcf4d640
4
- data.tar.gz: f233298e249dec73caab12f519e432c37fe39ad8
3
+ metadata.gz: dcdd359b35c8d18c17b44b2c813442015734c12a
4
+ data.tar.gz: 2523b9689d42fbaa9f608b6fe8984df4ad52184f
5
5
  SHA512:
6
- metadata.gz: 39782f49579e362ec5b921723367c63f00099dfbddda482421b7ca86d2c8bb3b9a7b47d5ec34e004936f23cb719e9856a6b7a4d5961c5cf0227f7de50d2c308b
7
- data.tar.gz: 81d6a03e63e7337722d3ac282299a30a1f8246b18a30f92e9c66f0d70ae935d4c36e50f597ffb315747a61e0da8287009e8039d7a67879051ca6487ddb41cb31
6
+ metadata.gz: 7b66b049340efb5c9789cd75a0245b7f5863f5761566fa526d38a36e126646eb999d404a32996bb3317a771e2a79d54d93d192c56f61849840c9de10c314f0b4
7
+ data.tar.gz: 5c800763646cf4d5d8d3005bf625a505390b5078fb5d84e498736d04125bfb8a3b8deff20217f8752f6f96c430c9210287e611dfe784c97d0487f9e9c56ac524
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format documentation
@@ -14,7 +14,7 @@ module Consumerable
14
14
  (class << self; self; end).instance_eval do
15
15
  define_method "_for_#{association_name}" do |id|
16
16
  init_collection Consumerable::Connection.
17
- get(list_path.gsub(/:#{association_name}/, id))
17
+ get(list_path.gsub(/:#{association_name}_id/, id))
18
18
  end
19
19
  end
20
20
 
@@ -1,3 +1,3 @@
1
1
  module Consumerable
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
@@ -0,0 +1,17 @@
1
+ # This file was generated by the `rspec --init` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # Require this file using `require "spec_helper"` to ensure that it is only
4
+ # loaded once.
5
+ #
6
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
7
+ RSpec.configure do |config|
8
+ config.treat_symbols_as_metadata_keys_with_true_values = true
9
+ config.run_all_when_everything_filtered = true
10
+ config.filter_run :focus
11
+
12
+ # Run specs in random order to surface order dependencies. If you find an
13
+ # order dependency and want to debug it, you can fix the order by providing
14
+ # the seed, which is printed after each run.
15
+ # --seed 1234
16
+ config.order = 'random'
17
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: consumerable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Beedle
@@ -130,6 +130,7 @@ extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
132
  - .gitignore
133
+ - .rspec
133
134
  - Gemfile
134
135
  - LICENSE.txt
135
136
  - README.md
@@ -149,6 +150,7 @@ files:
149
150
  - lib/consumerable/listable.rb
150
151
  - lib/consumerable/model.rb
151
152
  - lib/consumerable/version.rb
153
+ - spec/spec_helper.rb
152
154
  homepage: http://www.github.com/mattbeedle/consumerable
153
155
  licenses:
154
156
  - MIT
@@ -173,5 +175,5 @@ rubygems_version: 2.0.3
173
175
  signing_key:
174
176
  specification_version: 4
175
177
  summary: Quickly write API object mappers without having to re-invent the wheel
176
- test_files: []
177
- has_rdoc:
178
+ test_files:
179
+ - spec/spec_helper.rb