loquor 0.9.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NzhiYjZlODNjZGZlNmRhYjQ0MWFhNzBkZWJmYWJlMWYxODI3ZGJhYw==
5
- data.tar.gz: !binary |-
6
- OTg2ODdhMWIyYzI3ZWY2ODE1N2RkNTVlMTQwYzIxNWM5YmYyMDQzYQ==
2
+ SHA1:
3
+ metadata.gz: 8334f8eab469a6bcdc5b6172197c66186bc917c8
4
+ data.tar.gz: ba0235139b198343316b545a12312e07346e7965
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NDdhNDFkNWM1ZmFkNDFiYWNjMjljMzc4YWVmMDgxYzg1NGZhMWQ4MWY1YjM4
10
- MTRmYjlmNmEzZWVmNWQ3MjkxZDNlMDU3N2ZjNTBiYTkyZmNiYjRlMzVmZGEy
11
- ZmRjZmQ4OWRkNDIzN2I1OWQxODhhYWI1MzU0YTA5ZTIwMTMzMWU=
12
- data.tar.gz: !binary |-
13
- MDYyYzEzOTRjMTQzYjYzYzljOGMxYTI0ZmE5ZTIzOWEzMzQzNmFlNzNmNzhh
14
- NDIxYjJlMmZiMmFmMDYxYTUxNGVmMzA5ZjZiNDUwZWM4MDNhMGY0MmY1ZDQ5
15
- YjI0N2RhNWM0ZjMzMTU3ODFjOWI5NmE3ZDUxYTRiNTUyOTU5ZDA=
6
+ metadata.gz: bc89065f697c802a9f5f207a9f369cb5194401b8210c46975b6e78cd94c201afa963511b96abeccf105ea9700de7cd6948b17a22a45097360a0db2b243eb39a1
7
+ data.tar.gz: 7084fabea27d2ed79703bf1cb9dbbc317883eecb4bf8b1651163e79820dd0ac1f1fe629455b173116da32984ee289e5fd3988e75b396538c87450f87b3ee2a97
@@ -1,3 +1,6 @@
1
+ # 1.0.0 / 2014-01-22
2
+ * [BUGFIX] Fix issue wth mock not responding to update correctly
3
+
1
4
  # 0.9.0 / 2013-12-17
2
5
  * [BUGFIX] Don't set a Filum logfile
3
6
 
@@ -42,11 +42,11 @@ module Loquor
42
42
  [ find(1), find(2) ]
43
43
  end
44
44
 
45
- def create(attrs)
46
- self.new(attrs)
45
+ def create(*attrs)
46
+ self.new(*attrs)
47
47
  end
48
48
 
49
- def update(attrs)
49
+ def update(*attrs)
50
50
  true
51
51
  end
52
52
  end
@@ -1,3 +1,3 @@
1
1
  module Loquor
2
- VERSION = "0.9.0"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -41,6 +41,16 @@ module Loquor
41
41
  end
42
42
  assert_equal "undefined local variable or method 'cat' for Loquor::ResourceMockTest::Foobar", ex.message
43
43
  end
44
+
45
+ def test_should_respond_to_create
46
+ name = "foobar123"
47
+ foobar = Foobar.create(name: name)
48
+ assert_equal name, foobar.name
49
+ end
50
+
51
+ def test_should_respond_to_update
52
+ assert_equal true, Foobar.update(1, name: "foobar")
53
+ end
44
54
  end
45
55
  end
46
56
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loquor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Walker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-17 00:00:00.000000000 Z
11
+ date: 2014-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: filum
@@ -84,28 +84,28 @@ dependencies:
84
84
  name: mocha
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ! '>='
87
+ - - '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ! '>='
94
+ - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ! '>='
101
+ - - '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ! '>='
108
+ - - '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  description: An API dispatcher for Meducation
@@ -164,17 +164,17 @@ require_paths:
164
164
  - lib
165
165
  required_ruby_version: !ruby/object:Gem::Requirement
166
166
  requirements:
167
- - - ! '>='
167
+ - - '>='
168
168
  - !ruby/object:Gem::Version
169
169
  version: '0'
170
170
  required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  requirements:
172
- - - ! '>='
172
+ - - '>='
173
173
  - !ruby/object:Gem::Version
174
174
  version: '0'
175
175
  requirements: []
176
176
  rubyforge_project:
177
- rubygems_version: 2.1.9
177
+ rubygems_version: 2.2.1
178
178
  signing_key:
179
179
  specification_version: 4
180
180
  summary: This library dispatches requests to Meducation