moblues 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +16 -0
- data/.travis.yml +8 -0
- data/Gemfile +3 -0
- data/LICENSE.txt +22 -0
- data/README.md +44 -0
- data/Rakefile +4 -0
- data/bin/moblues +5 -0
- data/lib/extensions/hash.rb +9 -0
- data/lib/moblues/cli.rb +26 -0
- data/lib/moblues/data_model/attribute.rb +15 -0
- data/lib/moblues/data_model/entity.rb +17 -0
- data/lib/moblues/data_model/relationship.rb +17 -0
- data/lib/moblues/data_model.rb +3 -0
- data/lib/moblues/generator/base.rb +65 -0
- data/lib/moblues/generator/human.rb +25 -0
- data/lib/moblues/generator/human_header.h.erb +4 -0
- data/lib/moblues/generator/human_implementation.m.erb +4 -0
- data/lib/moblues/generator/machine.rb +36 -0
- data/lib/moblues/generator/machine_header.h.erb +43 -0
- data/lib/moblues/generator/machine_implementation.m.erb +7 -0
- data/lib/moblues/generator/model.rb +23 -0
- data/lib/moblues/generator.rb +4 -0
- data/lib/moblues/reader/attribute.rb +23 -0
- data/lib/moblues/reader/entity.rb +34 -0
- data/lib/moblues/reader/model.rb +31 -0
- data/lib/moblues/reader/relationship.rb +22 -0
- data/lib/moblues/reader/type.rb +58 -0
- data/lib/moblues/reader.rb +5 -0
- data/lib/moblues/utils/model_resolver.rb +19 -0
- data/lib/moblues/version.rb +3 -0
- data/lib/moblues.rb +4 -0
- data/moblues.gemspec +33 -0
- data/spec/features/moblues_spec.rb +36 -0
- data/spec/moblues/cli_spec.rb +50 -0
- data/spec/moblues/data_model/attribute_spec.rb +30 -0
- data/spec/moblues/data_model/entity_spec.rb +48 -0
- data/spec/moblues/data_model/relationship_spec.rb +46 -0
- data/spec/moblues/generator/human_spec.rb +74 -0
- data/spec/moblues/generator/machine_spec.rb +86 -0
- data/spec/moblues/generator/model_spec.rb +27 -0
- data/spec/moblues/reader/attribute_spec.rb +22 -0
- data/spec/moblues/reader/entity_spec.rb +57 -0
- data/spec/moblues/reader/model_spec.rb +66 -0
- data/spec/moblues/reader/relationship_spec.rb +22 -0
- data/spec/moblues/reader/type_spec.rb +79 -0
- data/spec/moblues/utils/model_resolver_spec.rb +28 -0
- data/spec/resources/Model.xcdatamodeld/.xccurrentversion +8 -0
- data/spec/resources/Model.xcdatamodeld/Model 2.xcdatamodel/contents +28 -0
- data/spec/resources/Model.xcdatamodeld/Model.xcdatamodel/contents +18 -0
- data/spec/resources/expected/Author.h +4 -0
- data/spec/resources/expected/Author.m +4 -0
- data/spec/resources/expected/_Author.h +36 -0
- data/spec/resources/expected/_Author.m +9 -0
- data/spec/resources/expected/_Book.h +19 -0
- data/spec/resources/expected/_Book.m +6 -0
- data/spec/resources/expected/_Person.h +9 -0
- data/spec/resources/expected/_Person.m +6 -0
- data/spec/resources/expected/_Team.h +18 -0
- data/spec/resources/expected/_Team.m +5 -0
- data/spec/resources/expected/human/Playable.h +4 -0
- data/spec/resources/expected/human/Playable.m +4 -0
- data/spec/resources/expected/human/Playlist.h +5 -0
- data/spec/resources/expected/human/Playlist.m +4 -0
- data/spec/resources/expected/human/Track.h +4 -0
- data/spec/resources/expected/human/Track.m +4 -0
- data/spec/resources/expected/human/User.h +4 -0
- data/spec/resources/expected/human/User.m +4 -0
- data/spec/resources/expected/machine/_Playable.h +9 -0
- data/spec/resources/expected/machine/_Playable.m +6 -0
- data/spec/resources/expected/machine/_Playlist.h +28 -0
- data/spec/resources/expected/machine/_Playlist.m +6 -0
- data/spec/resources/expected/machine/_Track.h +14 -0
- data/spec/resources/expected/machine/_Track.m +7 -0
- data/spec/resources/expected/machine/_User.h +27 -0
- data/spec/resources/expected/machine/_User.m +8 -0
- data/spec/resources/factories/data_model/attribute_factory.rb +12 -0
- data/spec/resources/factories/data_model/entity_factory.rb +13 -0
- data/spec/resources/factories/data_model/relationship_factory.rb +14 -0
- data/spec/resources/fixtures.rb +34 -0
- data/spec/resources/tmp/.gitkeep +0 -0
- data/spec/resources/tmp/_Team.h +18 -0
- data/spec/resources/tmp/_Team.m +5 -0
- data/spec/resources/tmp/human/Playlist.h +5 -0
- data/spec/resources/tmp/human/Playlist.m +4 -0
- data/spec/spec_helper.rb +15 -0
- metadata +285 -0
metadata
ADDED
@@ -0,0 +1,285 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: moblues
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Vincent Garrigues
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-12-02 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.19'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.19'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: plist
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.1'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.1'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.7'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.7'
|
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.3'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.3'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.1'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.1'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: factory_girl
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ~>
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '4.5'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '4.5'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: codeclimate-test-reporter
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ~>
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.4.1
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.4.1
|
111
|
+
description: |2
|
112
|
+
|
113
|
+
Generates files for entities defined in a Core Data model. Inspired by mogenerator.
|
114
|
+
|
115
|
+
For each entity in the Core Data model, moblues will create two files: a machine file and a human file. The machine file will be overwritten each time and should not contain any modifications. Moblues will only create the human file if it doesn't exist.
|
116
|
+
email:
|
117
|
+
- vincent.garrigues@gmail.com
|
118
|
+
executables:
|
119
|
+
- moblues
|
120
|
+
extensions: []
|
121
|
+
extra_rdoc_files: []
|
122
|
+
files:
|
123
|
+
- .gitignore
|
124
|
+
- .travis.yml
|
125
|
+
- Gemfile
|
126
|
+
- LICENSE.txt
|
127
|
+
- README.md
|
128
|
+
- Rakefile
|
129
|
+
- bin/moblues
|
130
|
+
- lib/extensions/hash.rb
|
131
|
+
- lib/moblues.rb
|
132
|
+
- lib/moblues/cli.rb
|
133
|
+
- lib/moblues/data_model.rb
|
134
|
+
- lib/moblues/data_model/attribute.rb
|
135
|
+
- lib/moblues/data_model/entity.rb
|
136
|
+
- lib/moblues/data_model/relationship.rb
|
137
|
+
- lib/moblues/generator.rb
|
138
|
+
- lib/moblues/generator/base.rb
|
139
|
+
- lib/moblues/generator/human.rb
|
140
|
+
- lib/moblues/generator/human_header.h.erb
|
141
|
+
- lib/moblues/generator/human_implementation.m.erb
|
142
|
+
- lib/moblues/generator/machine.rb
|
143
|
+
- lib/moblues/generator/machine_header.h.erb
|
144
|
+
- lib/moblues/generator/machine_implementation.m.erb
|
145
|
+
- lib/moblues/generator/model.rb
|
146
|
+
- lib/moblues/reader.rb
|
147
|
+
- lib/moblues/reader/attribute.rb
|
148
|
+
- lib/moblues/reader/entity.rb
|
149
|
+
- lib/moblues/reader/model.rb
|
150
|
+
- lib/moblues/reader/relationship.rb
|
151
|
+
- lib/moblues/reader/type.rb
|
152
|
+
- lib/moblues/utils/model_resolver.rb
|
153
|
+
- lib/moblues/version.rb
|
154
|
+
- moblues.gemspec
|
155
|
+
- spec/features/moblues_spec.rb
|
156
|
+
- spec/moblues/cli_spec.rb
|
157
|
+
- spec/moblues/data_model/attribute_spec.rb
|
158
|
+
- spec/moblues/data_model/entity_spec.rb
|
159
|
+
- spec/moblues/data_model/relationship_spec.rb
|
160
|
+
- spec/moblues/generator/human_spec.rb
|
161
|
+
- spec/moblues/generator/machine_spec.rb
|
162
|
+
- spec/moblues/generator/model_spec.rb
|
163
|
+
- spec/moblues/reader/attribute_spec.rb
|
164
|
+
- spec/moblues/reader/entity_spec.rb
|
165
|
+
- spec/moblues/reader/model_spec.rb
|
166
|
+
- spec/moblues/reader/relationship_spec.rb
|
167
|
+
- spec/moblues/reader/type_spec.rb
|
168
|
+
- spec/moblues/utils/model_resolver_spec.rb
|
169
|
+
- spec/resources/Model.xcdatamodeld/.xccurrentversion
|
170
|
+
- spec/resources/Model.xcdatamodeld/Model 2.xcdatamodel/contents
|
171
|
+
- spec/resources/Model.xcdatamodeld/Model.xcdatamodel/contents
|
172
|
+
- spec/resources/expected/Author.h
|
173
|
+
- spec/resources/expected/Author.m
|
174
|
+
- spec/resources/expected/_Author.h
|
175
|
+
- spec/resources/expected/_Author.m
|
176
|
+
- spec/resources/expected/_Book.h
|
177
|
+
- spec/resources/expected/_Book.m
|
178
|
+
- spec/resources/expected/_Person.h
|
179
|
+
- spec/resources/expected/_Person.m
|
180
|
+
- spec/resources/expected/_Team.h
|
181
|
+
- spec/resources/expected/_Team.m
|
182
|
+
- spec/resources/expected/human/Playable.h
|
183
|
+
- spec/resources/expected/human/Playable.m
|
184
|
+
- spec/resources/expected/human/Playlist.h
|
185
|
+
- spec/resources/expected/human/Playlist.m
|
186
|
+
- spec/resources/expected/human/Track.h
|
187
|
+
- spec/resources/expected/human/Track.m
|
188
|
+
- spec/resources/expected/human/User.h
|
189
|
+
- spec/resources/expected/human/User.m
|
190
|
+
- spec/resources/expected/machine/_Playable.h
|
191
|
+
- spec/resources/expected/machine/_Playable.m
|
192
|
+
- spec/resources/expected/machine/_Playlist.h
|
193
|
+
- spec/resources/expected/machine/_Playlist.m
|
194
|
+
- spec/resources/expected/machine/_Track.h
|
195
|
+
- spec/resources/expected/machine/_Track.m
|
196
|
+
- spec/resources/expected/machine/_User.h
|
197
|
+
- spec/resources/expected/machine/_User.m
|
198
|
+
- spec/resources/factories/data_model/attribute_factory.rb
|
199
|
+
- spec/resources/factories/data_model/entity_factory.rb
|
200
|
+
- spec/resources/factories/data_model/relationship_factory.rb
|
201
|
+
- spec/resources/fixtures.rb
|
202
|
+
- spec/resources/tmp/.gitkeep
|
203
|
+
- spec/resources/tmp/_Team.h
|
204
|
+
- spec/resources/tmp/_Team.m
|
205
|
+
- spec/resources/tmp/human/Playlist.h
|
206
|
+
- spec/resources/tmp/human/Playlist.m
|
207
|
+
- spec/spec_helper.rb
|
208
|
+
homepage: http://garriguv.io
|
209
|
+
licenses:
|
210
|
+
- MIT
|
211
|
+
metadata: {}
|
212
|
+
post_install_message:
|
213
|
+
rdoc_options: []
|
214
|
+
require_paths:
|
215
|
+
- lib
|
216
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
217
|
+
requirements:
|
218
|
+
- - '>='
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: '0'
|
221
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
222
|
+
requirements:
|
223
|
+
- - '>='
|
224
|
+
- !ruby/object:Gem::Version
|
225
|
+
version: '0'
|
226
|
+
requirements: []
|
227
|
+
rubyforge_project:
|
228
|
+
rubygems_version: 2.2.2
|
229
|
+
signing_key:
|
230
|
+
specification_version: 4
|
231
|
+
summary: Generates Objective-C files for entities defined in a Core Data model
|
232
|
+
test_files:
|
233
|
+
- spec/features/moblues_spec.rb
|
234
|
+
- spec/moblues/cli_spec.rb
|
235
|
+
- spec/moblues/data_model/attribute_spec.rb
|
236
|
+
- spec/moblues/data_model/entity_spec.rb
|
237
|
+
- spec/moblues/data_model/relationship_spec.rb
|
238
|
+
- spec/moblues/generator/human_spec.rb
|
239
|
+
- spec/moblues/generator/machine_spec.rb
|
240
|
+
- spec/moblues/generator/model_spec.rb
|
241
|
+
- spec/moblues/reader/attribute_spec.rb
|
242
|
+
- spec/moblues/reader/entity_spec.rb
|
243
|
+
- spec/moblues/reader/model_spec.rb
|
244
|
+
- spec/moblues/reader/relationship_spec.rb
|
245
|
+
- spec/moblues/reader/type_spec.rb
|
246
|
+
- spec/moblues/utils/model_resolver_spec.rb
|
247
|
+
- spec/resources/Model.xcdatamodeld/.xccurrentversion
|
248
|
+
- spec/resources/Model.xcdatamodeld/Model 2.xcdatamodel/contents
|
249
|
+
- spec/resources/Model.xcdatamodeld/Model.xcdatamodel/contents
|
250
|
+
- spec/resources/expected/Author.h
|
251
|
+
- spec/resources/expected/Author.m
|
252
|
+
- spec/resources/expected/_Author.h
|
253
|
+
- spec/resources/expected/_Author.m
|
254
|
+
- spec/resources/expected/_Book.h
|
255
|
+
- spec/resources/expected/_Book.m
|
256
|
+
- spec/resources/expected/_Person.h
|
257
|
+
- spec/resources/expected/_Person.m
|
258
|
+
- spec/resources/expected/_Team.h
|
259
|
+
- spec/resources/expected/_Team.m
|
260
|
+
- spec/resources/expected/human/Playable.h
|
261
|
+
- spec/resources/expected/human/Playable.m
|
262
|
+
- spec/resources/expected/human/Playlist.h
|
263
|
+
- spec/resources/expected/human/Playlist.m
|
264
|
+
- spec/resources/expected/human/Track.h
|
265
|
+
- spec/resources/expected/human/Track.m
|
266
|
+
- spec/resources/expected/human/User.h
|
267
|
+
- spec/resources/expected/human/User.m
|
268
|
+
- spec/resources/expected/machine/_Playable.h
|
269
|
+
- spec/resources/expected/machine/_Playable.m
|
270
|
+
- spec/resources/expected/machine/_Playlist.h
|
271
|
+
- spec/resources/expected/machine/_Playlist.m
|
272
|
+
- spec/resources/expected/machine/_Track.h
|
273
|
+
- spec/resources/expected/machine/_Track.m
|
274
|
+
- spec/resources/expected/machine/_User.h
|
275
|
+
- spec/resources/expected/machine/_User.m
|
276
|
+
- spec/resources/factories/data_model/attribute_factory.rb
|
277
|
+
- spec/resources/factories/data_model/entity_factory.rb
|
278
|
+
- spec/resources/factories/data_model/relationship_factory.rb
|
279
|
+
- spec/resources/fixtures.rb
|
280
|
+
- spec/resources/tmp/.gitkeep
|
281
|
+
- spec/resources/tmp/_Team.h
|
282
|
+
- spec/resources/tmp/_Team.m
|
283
|
+
- spec/resources/tmp/human/Playlist.h
|
284
|
+
- spec/resources/tmp/human/Playlist.m
|
285
|
+
- spec/spec_helper.rb
|