consumerable 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rspec +2 -0
- data/lib/consumerable/associations/belongs_to.rb +1 -1
- data/lib/consumerable/version.rb +1 -1
- data/spec/spec_helper.rb +17 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcdd359b35c8d18c17b44b2c813442015734c12a
|
4
|
+
data.tar.gz: 2523b9689d42fbaa9f608b6fe8984df4ad52184f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b66b049340efb5c9789cd75a0245b7f5863f5761566fa526d38a36e126646eb999d404a32996bb3317a771e2a79d54d93d192c56f61849840c9de10c314f0b4
|
7
|
+
data.tar.gz: 5c800763646cf4d5d8d3005bf625a505390b5078fb5d84e498736d04125bfb8a3b8deff20217f8752f6f96c430c9210287e611dfe784c97d0487f9e9c56ac524
|
data/.rspec
ADDED
@@ -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
|
|
data/lib/consumerable/version.rb
CHANGED
data/spec/spec_helper.rb
ADDED
@@ -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.
|
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
|
-
|
178
|
+
test_files:
|
179
|
+
- spec/spec_helper.rb
|