openmeta.rb 1.3.0 → 1.3.1

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
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OTUyMzM1NGJjM2Q5YjgzNWY4OTE0YWEyYjc0YmExMDc4NDM4YWU5ZA==
5
- data.tar.gz: !binary |-
6
- YTRjOWE0OWYyNWQ4ZGZkNzE2NTYxMDVhOTViZTJiNTZmZmE2OWMxMw==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- NTk5YWFmMzdhYTBkNjcwNzE5MTY4NzY1OGJjZDE2M2IzNDBmNzk2NzZlMTk0
10
- MTg5ODVhOGMwZWJhODcwNGFiMGZkZmUzMTAzNDYzZGJjMWJkYjA4ZTQxNjE0
11
- ZTkyNzRkNjIzOTY5NDMzNThkZWRmZDdlNGFiYzllNDgwMTVkZmQ=
12
- data.tar.gz: !binary |-
13
- ZDY3MDEyNWFhMTE4ODY5ZTRkY2M5Nzc1MDE1ZmY2MGQ5MDlhNWVhZDZkMzE1
14
- NzQzYjE2MzcxNzdiNzY4YzMwOWY5NWJkMTZiMDA0YzdjYTQ0NDRhYzUyZjc0
15
- ZjQxOWQxYmE2ZTY0ZDVlODYxODA1ZDczMmMzYjc5MTA4NTkwNmE=
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b526c286d3a9b6571647d09cc6de5369d409eca0
4
+ data.tar.gz: f0dd005385f43c0498bc39adad9e72806cfd6980
5
+ SHA512:
6
+ metadata.gz: 2db1a91510bf57b0a96f77b90b5be6c92fe314f13b357b2c0aa177e2ad1783792111ec56909b7d875615b3d39c88fff56887e7565ddae6c60dfac794cf93f93b
7
+ data.tar.gz: 7be4ac476f96b5394d97da073b10ceeba592002541d9273e3035f063826bc06e20776433156812229f008f7624312527de48a317543744943696f74710f89bad
data/Guardfile CHANGED
@@ -5,7 +5,7 @@ notification :growl
5
5
 
6
6
  group :backend do
7
7
 
8
- guard 'rspec', :rvm => ["macruby"], :notification => true do
8
+ guard 'rspec', :rvm => ["macruby-nightly"], :notification => true do
9
9
 
10
10
  watch(%r{^spec/.+_spec\.rb$})
11
11
  watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
data/Manifest.txt CHANGED
@@ -1,4 +1,3 @@
1
- .ruby-version
2
1
  Guardfile
3
2
  History.txt
4
3
  Manifest.txt
@@ -1,4 +1,4 @@
1
1
  module Openmeta
2
- VERSION = '1.3.0'
2
+ VERSION = '1.3.1'
3
3
  end
4
4
 
data/lib/openmeta.rb CHANGED
@@ -121,7 +121,7 @@ module Openmeta
121
121
 
122
122
  to_files = fu_list(to_files)
123
123
  to_files.each { |file|
124
- set_tags(tags, file) unless tags.empty?
124
+ set_tags(tags, file) unless (tags == nil or tags.empty?)
125
125
  set_rating(rating, file) unless rating == 0.0
126
126
  }
127
127
  end
@@ -15,6 +15,10 @@ describe "Openmeta" do
15
15
  expect { Openmeta.get_tags("/path/to/nowhere") }.to raise_error(Openmeta::ObjCError)
16
16
  end
17
17
 
18
+ it "should not raise Error if file does not contains tags" do
19
+ expect { Openmeta.clone(@testfiles[0], @testfiles[1]) }.should_not raise_error
20
+ end
21
+
18
22
  it "should set tags and rating correctly" do
19
23
  tags = ["Test","Tag"]
20
24
  rating = 4
metadata CHANGED
@@ -1,209 +1,142 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: openmeta.rb
3
- version: !ruby/object:Gem::Version
4
- version: 1.3.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.3.1
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Zhao Cai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-31 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
11
+
12
+ date: 2013-03-31 00:00:00 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
14
15
  name: thor
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ~>
18
- - !ruby/object:Gem::Version
19
- version: 0.17.0
20
- type: :runtime
21
16
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirements:
24
19
  - - ~>
25
- - !ruby/object:Gem::Version
20
+ - !ruby/object:Gem::Version
26
21
  version: 0.17.0
27
- - !ruby/object:Gem::Dependency
22
+ type: :runtime
23
+ version_requirements: *id001
24
+ - !ruby/object:Gem::Dependency
28
25
  name: rdoc
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ~>
32
- - !ruby/object:Gem::Version
33
- version: '3.10'
34
- type: :development
35
26
  prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
27
+ requirement: &id002 !ruby/object:Gem::Requirement
28
+ requirements:
38
29
  - - ~>
39
- - !ruby/object:Gem::Version
40
- version: '3.10'
41
- - !ruby/object:Gem::Dependency
42
- name: rspec
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ! '>='
46
- - !ruby/object:Gem::Version
47
- version: '2.13'
30
+ - !ruby/object:Gem::Version
31
+ version: "3.10"
48
32
  type: :development
33
+ version_requirements: *id002
34
+ - !ruby/object:Gem::Dependency
35
+ name: rspec
49
36
  prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '2.13'
55
- - !ruby/object:Gem::Dependency
56
- name: rake
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: 10.0.0
37
+ requirement: &id003 !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: "2.13"
62
42
  type: :development
43
+ version_requirements: *id003
44
+ - !ruby/object:Gem::Dependency
45
+ name: rake
63
46
  prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ! '>='
67
- - !ruby/object:Gem::Version
47
+ requirement: &id004 !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
68
51
  version: 10.0.0
69
- - !ruby/object:Gem::Dependency
70
- name: hoe
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ! '>='
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
52
  type: :development
53
+ version_requirements: *id004
54
+ - !ruby/object:Gem::Dependency
55
+ name: hoe
77
56
  prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ! '>='
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: hoe-gemspec
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ! '>='
88
- - !ruby/object:Gem::Version
89
- version: '0'
57
+ requirement: &id005 !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - &id006
60
+ - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: "0"
90
63
  type: :development
64
+ version_requirements: *id005
65
+ - !ruby/object:Gem::Dependency
66
+ name: hoe-gemspec
91
67
  prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ! '>='
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: hoe-git
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ! '>='
102
- - !ruby/object:Gem::Version
103
- version: '0'
68
+ requirement: &id007 !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - *id006
104
71
  type: :development
72
+ version_requirements: *id007
73
+ - !ruby/object:Gem::Dependency
74
+ name: hoe-git
105
75
  prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ! '>='
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: hoe-version
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ! '>='
116
- - !ruby/object:Gem::Version
117
- version: '0'
76
+ requirement: &id008 !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - *id006
118
79
  type: :development
80
+ version_requirements: *id008
81
+ - !ruby/object:Gem::Dependency
82
+ name: hoe-version
119
83
  prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ! '>='
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: hoe-bundler
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ! '>='
130
- - !ruby/object:Gem::Version
131
- version: '0'
84
+ requirement: &id009 !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - *id006
132
87
  type: :development
88
+ version_requirements: *id009
89
+ - !ruby/object:Gem::Dependency
90
+ name: hoe-bundler
133
91
  prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ! '>='
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: guard
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ! '>='
144
- - !ruby/object:Gem::Version
145
- version: '0'
92
+ requirement: &id010 !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - *id006
146
95
  type: :development
96
+ version_requirements: *id010
97
+ - !ruby/object:Gem::Dependency
98
+ name: guard
147
99
  prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ! '>='
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
- - !ruby/object:Gem::Dependency
154
- name: guard-rspec
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - ! '>='
158
- - !ruby/object:Gem::Version
159
- version: '0'
100
+ requirement: &id011 !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - *id006
160
103
  type: :development
104
+ version_requirements: *id011
105
+ - !ruby/object:Gem::Dependency
106
+ name: guard-rspec
161
107
  prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - ! '>='
165
- - !ruby/object:Gem::Version
166
- version: '0'
167
- - !ruby/object:Gem::Dependency
168
- name: terminal-notifier-guard
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - ! '>='
172
- - !ruby/object:Gem::Version
173
- version: '0'
108
+ requirement: &id012 !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - *id006
174
111
  type: :development
112
+ version_requirements: *id012
113
+ - !ruby/object:Gem::Dependency
114
+ name: terminal-notifier-guard
175
115
  prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - ! '>='
179
- - !ruby/object:Gem::Version
180
- version: '0'
181
- - !ruby/object:Gem::Dependency
182
- name: growl
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - ! '>='
186
- - !ruby/object:Gem::Version
187
- version: '0'
116
+ requirement: &id013 !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - *id006
188
119
  type: :development
120
+ version_requirements: *id013
121
+ - !ruby/object:Gem::Dependency
122
+ name: growl
189
123
  prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - ! '>='
193
- - !ruby/object:Gem::Version
194
- version: '0'
195
- description: openMeta in Ruby (MacRuby, more exactly!). This gem ports [openmeta](
196
- http://code.google.com/p/openmeta/ ) api to macruby using framework.
197
- email:
124
+ requirement: &id014 !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - *id006
127
+ type: :development
128
+ version_requirements: *id014
129
+ description: openMeta in Ruby (MacRuby, more exactly!). This gem ports [openmeta]( http://code.google.com/p/openmeta/ ) api to macruby using framework.
130
+ email:
198
131
  - caizhaoff@gmail.com
199
- executables:
132
+ executables:
200
133
  - tag
201
134
  extensions: []
202
- extra_rdoc_files:
135
+
136
+ extra_rdoc_files:
203
137
  - History.txt
204
138
  - Manifest.txt
205
- files:
206
- - .ruby-version
139
+ files:
207
140
  - Guardfile
208
141
  - History.txt
209
142
  - Manifest.txt
@@ -226,29 +159,28 @@ files:
226
159
  - spec/spec_helper.rb
227
160
  - .gemtest
228
161
  homepage: http://zhaocai.github.com/openmeta.rb
229
- licenses:
162
+ licenses:
230
163
  - GPL-3
231
164
  metadata: {}
165
+
232
166
  post_install_message:
233
- rdoc_options:
167
+ rdoc_options:
234
168
  - --main
235
169
  - README.md
236
- require_paths:
170
+ require_paths:
237
171
  - lib
238
- required_ruby_version: !ruby/object:Gem::Requirement
239
- requirements:
240
- - - ! '>='
241
- - !ruby/object:Gem::Version
242
- version: '0'
243
- required_rubygems_version: !ruby/object:Gem::Requirement
244
- requirements:
245
- - - ! '>='
246
- - !ruby/object:Gem::Version
247
- version: '0'
172
+ required_ruby_version: !ruby/object:Gem::Requirement
173
+ requirements:
174
+ - *id006
175
+ required_rubygems_version: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - *id006
248
178
  requirements: []
179
+
249
180
  rubyforge_project: openmeta.rb
250
181
  rubygems_version: 2.0.3
251
182
  signing_key:
252
183
  specification_version: 4
253
184
  summary: openMeta in Ruby (MacRuby, more exactly!)
254
185
  test_files: []
186
+
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- macruby