gemspec_deps_gen 1.1.1 → 1.1.2

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: 00059cc8215db70e62ee0a5601f361784102f4dc
4
- data.tar.gz: 6066992e4d281a21e24010350edf013a61021377
3
+ metadata.gz: e8624f8173accdd16b742b4ac600cedb8434b357
4
+ data.tar.gz: 4a93e8d6661024337165611eed258cb3267a6eca
5
5
  SHA512:
6
- metadata.gz: 8cfa5624451d6babdfe5328acd61c62b4a4d440483196bf723914f9ee41240da0168ee9808d4142a532b2da3288476ec6deb0ef5e08d747f47af5b5e3c3224b1
7
- data.tar.gz: 990d79b35dc07dec2b294c839297ea8928b80051baa43149b706b975b1e3ce5182acf706a4aea439a96ed7c24f609871ea0ac5f50adf8bfa21d284c20c2d7cd6
6
+ metadata.gz: c95935ffdcce18d70c07df700496d5b2c32f1cb33fff3b4c813570b3831d767b6c63a24fb1ac10f5fbb72c7106ba209ece447bdbb484ccc9b29f90291c0f0183
7
+ data.tar.gz: f3683b9de60b0b26ec44b86dc888773ea57012063f5ab26086987eb2c81ab5ac64813a8c56df366e8b7234643276211f7123e3cb95c2d3e6ad2cc661c1516ab9
@@ -13,16 +13,16 @@
13
13
  <content url="file://$MODULE_DIR$" />
14
14
  <orderEntry type="inheritedJdk" />
15
15
  <orderEntry type="sourceFolder" forTests="false" />
16
- <orderEntry type="library" scope="PROVIDED" name="bundler (v1.3.5, RVM: ruby-2.0.0-p247 [gemspec_deps_gen]) [gem]" level="application" />
17
- <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.4, RVM: ruby-2.0.0-p247 [gemspec_deps_gen]) [gem]" level="application" />
18
- <orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.7, RVM: ruby-2.0.0-p247 [gemspec_deps_gen]) [gem]" level="application" />
19
- <orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-2.0.0-p247 [gemspec_deps_gen]) [gem]" level="application" />
20
- <orderEntry type="library" scope="PROVIDED" name="metaclass (v0.0.1, RVM: ruby-2.0.0-p247 [gemspec_deps_gen]) [gem]" level="application" />
21
- <orderEntry type="library" scope="PROVIDED" name="mocha (v0.14.0, RVM: ruby-2.0.0-p247 [gemspec_deps_gen]) [gem]" level="application" />
22
- <orderEntry type="library" scope="PROVIDED" name="rspec (v2.14.1, RVM: ruby-2.0.0-p247 [gemspec_deps_gen]) [gem]" level="application" />
23
- <orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.14.4, RVM: ruby-2.0.0-p247 [gemspec_deps_gen]) [gem]" level="application" />
24
- <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v2.14.1, RVM: ruby-2.0.0-p247 [gemspec_deps_gen]) [gem]" level="application" />
25
- <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v2.14.3, RVM: ruby-2.0.0-p247 [gemspec_deps_gen]) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.3.5, RVM: ruby-2.0.0-p195 [gemspec_deps_gen]) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.4, RVM: ruby-2.0.0-p195 [gemspec_deps_gen]) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.7, RVM: ruby-2.0.0-p195 [gemspec_deps_gen]) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-2.0.0-p195 [gemspec_deps_gen]) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="metaclass (v0.0.1, RVM: ruby-2.0.0-p195 [gemspec_deps_gen]) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="mocha (v0.14.0, RVM: ruby-2.0.0-p195 [gemspec_deps_gen]) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v2.14.1, RVM: ruby-2.0.0-p195 [gemspec_deps_gen]) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.14.4, RVM: ruby-2.0.0-p195 [gemspec_deps_gen]) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v2.14.1, RVM: ruby-2.0.0-p195 [gemspec_deps_gen]) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v2.14.3, RVM: ruby-2.0.0-p195 [gemspec_deps_gen]) [gem]" level="application" />
26
26
  </component>
27
27
  </module>
28
28
 
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="CppTools.Loader" reportImplicitCastToBool="false" reportNameReferencedOnce="false" version="3" compilerSelect="AUTO" />
4
- <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.0.0-p247 [gemspec_deps_gen]" project-jdk-type="RUBY_SDK" />
4
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.0.0-p195 [gemspec_deps_gen]" project-jdk-type="RUBY_SDK" />
5
5
  </project>
6
6
 
@@ -4,22 +4,25 @@
4
4
  <list default="true" id="7ff5d788-a599-4460-bba2-66ee4aef909f" name="Default" comment="">
5
5
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/CHANGES" afterPath="$PROJECT_DIR$/CHANGES" />
6
6
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
7
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/sample/Rakefile" afterPath="$PROJECT_DIR$/sample/Rakefile" />
7
8
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/gemspec_deps_gen.iml" afterPath="$PROJECT_DIR$/.idea/gemspec_deps_gen.iml" />
8
9
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/gemspec_deps_gen/gemspec_deps_gen.rb" afterPath="$PROJECT_DIR$/lib/gemspec_deps_gen/gemspec_deps_gen.rb" />
10
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/bin/gemspec_deps_gen" afterPath="$PROJECT_DIR$/bin/gemspec_deps_gen" />
9
11
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/misc.xml" afterPath="$PROJECT_DIR$/.idea/misc.xml" />
10
12
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/sample/sample.gemspec.erb" afterPath="$PROJECT_DIR$/sample/sample.gemspec.erb" />
13
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/sample/sample.gemspec" afterPath="$PROJECT_DIR$/sample/sample.gemspec" />
11
14
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/gemspec_deps_gen/version.rb" afterPath="$PROJECT_DIR$/lib/gemspec_deps_gen/version.rb" />
12
15
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
13
16
  </list>
14
17
  <ignored path="gemspec_deps_gen.iws" />
15
18
  <ignored path=".idea/workspace.xml" />
16
- <file path="/Dummy.txt" changelist="7ff5d788-a599-4460-bba2-66ee4aef909f" time="1376339616178" ignored="false" />
19
+ <file path="/Dummy.txt" changelist="7ff5d788-a599-4460-bba2-66ee4aef909f" time="1376882314298" ignored="false" />
17
20
  <file path="/.ruby-version" changelist="7ff5d788-a599-4460-bba2-66ee4aef909f" time="1376226875902" ignored="false" />
18
21
  <file path="/version.rb" changelist="7ff5d788-a599-4460-bba2-66ee4aef909f" time="1376226799994" ignored="false" />
19
22
  <file path="/sample.gemspec" changelist="7ff5d788-a599-4460-bba2-66ee4aef909f" time="1376225289850" ignored="false" />
20
23
  <file path="/Rakefile" changelist="7ff5d788-a599-4460-bba2-66ee4aef909f" time="1376225931879" ignored="false" />
21
24
  <file path="/gemspec_deps_gen.gemspec" changelist="7ff5d788-a599-4460-bba2-66ee4aef909f" time="1376227626222" ignored="false" />
22
- <file path="/gemspec_deps_gen.rb" changelist="7ff5d788-a599-4460-bba2-66ee4aef909f" time="1376226413659" ignored="false" />
25
+ <file path="/gemspec_deps_gen.rb" changelist="7ff5d788-a599-4460-bba2-66ee4aef909f" time="1376883836949" ignored="false" />
23
26
  <file path="/temp.rb" changelist="7ff5d788-a599-4460-bba2-66ee4aef909f" time="1376149384944" ignored="false" />
24
27
  <file path="/sample.rb" changelist="7ff5d788-a599-4460-bba2-66ee4aef909f" time="1376184286307" ignored="false" />
25
28
  <file path="/sample.gemspec.erb" changelist="7ff5d788-a599-4460-bba2-66ee4aef909f" time="1376225881300" ignored="false" />
@@ -34,10 +37,13 @@
34
37
  <file path="$PROJECT_DIR$/../file_utils/.ruby-version" changelist="7ff5d788-a599-4460-bba2-66ee4aef909f" time="1376226876221" ignored="false" />
35
38
  <file path="$PROJECT_DIR$/../file_utils/Gemfile.lock" changelist="7ff5d788-a599-4460-bba2-66ee4aef909f" time="1376227104030" ignored="false" />
36
39
  <file path="/README.md" changelist="7ff5d788-a599-4460-bba2-66ee4aef909f" time="1376228404528" ignored="false" />
37
- <file path="/gemspec_deps_gen" changelist="7ff5d788-a599-4460-bba2-66ee4aef909f" time="1376229585016" ignored="false" />
40
+ <file path="/gemspec_deps_gen" changelist="7ff5d788-a599-4460-bba2-66ee4aef909f" time="1376883375537" ignored="false" />
38
41
  <file path="/gemspec_deps_gen.bat" changelist="7ff5d788-a599-4460-bba2-66ee4aef909f" time="1376227792094" ignored="false" />
39
42
  <file path="/genspec_deps_gen.rb" changelist="7ff5d788-a599-4460-bba2-66ee4aef909f" time="1376228696111" ignored="false" />
40
43
  <file path="/a.dummy" changelist="7ff5d788-a599-4460-bba2-66ee4aef909f" time="1376339732704" ignored="false" />
44
+ <file path="$PROJECT_DIR$/../google-translate/lib/google_translate/translate_cli.rb" changelist="7ff5d788-a599-4460-bba2-66ee4aef909f" time="1376340673716" ignored="false" />
45
+ <file path="$PROJECT_DIR$/../docs/blog/using_gemfile_gems_inside_gemspec.md" changelist="7ff5d788-a599-4460-bba2-66ee4aef909f" time="1376344057873" ignored="false" />
46
+ <file path="/CHANGES" changelist="7ff5d788-a599-4460-bba2-66ee4aef909f" time="1376882825470" ignored="false" />
41
47
  <option name="TRACKING_ENABLED" value="true" />
42
48
  <option name="SHOW_DIALOG" value="false" />
43
49
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -60,25 +66,16 @@
60
66
  <file leaf-file-name="sample.gemspec.erb" pinned="false" current="false" current-in-tab="false">
61
67
  <entry file="file://$PROJECT_DIR$/sample/sample.gemspec.erb">
62
68
  <provider selected="true" editor-type-id="text-editor">
63
- <state line="14" column="22" selection-start="423" selection-end="423" vertical-scroll-proportion="-8.96">
69
+ <state line="11" column="24" selection-start="388" selection-end="388" vertical-scroll-proportion="-6.875">
64
70
  <folding />
65
71
  </state>
66
72
  </provider>
67
73
  </entry>
68
74
  </file>
69
- <file leaf-file-name="Gemfile" pinned="false" current="false" current-in-tab="false">
70
- <entry file="file://$PROJECT_DIR$/Gemfile">
71
- <provider selected="true" editor-type-id="text-editor">
72
- <state line="15" column="0" selection-start="181" selection-end="181" vertical-scroll-proportion="0.0">
73
- <folding />
74
- </state>
75
- </provider>
76
- </entry>
77
- </file>
78
- <file leaf-file-name="CHANGES" pinned="false" current="false" current-in-tab="false">
79
- <entry file="file://$PROJECT_DIR$/CHANGES">
75
+ <file leaf-file-name="Rakefile" pinned="false" current="true" current-in-tab="true">
76
+ <entry file="file://$PROJECT_DIR$/sample/Rakefile">
80
77
  <provider selected="true" editor-type-id="text-editor">
81
- <state line="16" column="47" selection-start="237" selection-end="237" vertical-scroll-proportion="0.0">
78
+ <state line="6" column="32" selection-start="140" selection-end="140" vertical-scroll-proportion="0.096463025">
82
79
  <folding />
83
80
  </state>
84
81
  </provider>
@@ -87,25 +84,7 @@
87
84
  <file leaf-file-name="gemspec_deps_gen" pinned="false" current="false" current-in-tab="false">
88
85
  <entry file="file://$PROJECT_DIR$/bin/gemspec_deps_gen">
89
86
  <provider selected="true" editor-type-id="text-editor">
90
- <state line="8" column="76" selection-start="222" selection-end="222" vertical-scroll-proportion="0.0">
91
- <folding />
92
- </state>
93
- </provider>
94
- </entry>
95
- </file>
96
- <file leaf-file-name="sample.gemspec" pinned="false" current="false" current-in-tab="false">
97
- <entry file="file://$PROJECT_DIR$/sample/sample.gemspec">
98
- <provider selected="true" editor-type-id="text-editor">
99
- <state line="20" column="0" selection-start="558" selection-end="558" vertical-scroll-proportion="0.0">
100
- <folding />
101
- </state>
102
- </provider>
103
- </entry>
104
- </file>
105
- <file leaf-file-name="Rakefile" pinned="false" current="false" current-in-tab="false">
106
- <entry file="file://$PROJECT_DIR$/sample/Rakefile">
107
- <provider selected="true" editor-type-id="text-editor">
108
- <state line="8" column="21" selection-start="176" selection-end="176" vertical-scroll-proportion="0.0">
87
+ <state line="15" column="127" selection-start="486" selection-end="486" vertical-scroll-proportion="0.0">
109
88
  <folding />
110
89
  </state>
111
90
  </provider>
@@ -114,31 +93,19 @@
114
93
  <file leaf-file-name="gemspec_deps_gen.rb" pinned="false" current="false" current-in-tab="false">
115
94
  <entry file="file://$PROJECT_DIR$/lib/gemspec_deps_gen/gemspec_deps_gen.rb">
116
95
  <provider selected="true" editor-type-id="text-editor">
117
- <state line="15" column="43" selection-start="366" selection-end="366" vertical-scroll-proportion="0.0">
96
+ <state line="16" column="31" selection-start="446" selection-end="446" vertical-scroll-proportion="0.0">
118
97
  <folding />
119
98
  </state>
120
99
  </provider>
121
100
  </entry>
122
101
  </file>
123
- <file leaf-file-name="Gemfile.lock" pinned="false" current="false" current-in-tab="false">
124
- <entry file="file://$PROJECT_DIR$/Gemfile.lock">
125
- <provider selected="true" editor-type-id="text-editor">
126
- <state line="21" column="0" selection-start="427" selection-end="427" vertical-scroll-proportion="0.0">
127
- <folding />
128
- </state>
129
- </provider>
130
- </entry>
131
- </file>
132
- <file leaf-file-name="README.md" pinned="false" current="true" current-in-tab="true">
133
- <entry file="file://$PROJECT_DIR$/README.md">
102
+ <file leaf-file-name="sample.gemspec" pinned="false" current="false" current-in-tab="false">
103
+ <entry file="file://$PROJECT_DIR$/sample/sample.gemspec">
134
104
  <provider selected="true" editor-type-id="text-editor">
135
- <state line="44" column="70" selection-start="914" selection-end="914" vertical-scroll-proportion="0.45229682">
105
+ <state line="19" column="56" selection-start="557" selection-end="557" vertical-scroll-proportion="0.0">
136
106
  <folding />
137
107
  </state>
138
108
  </provider>
139
- <provider editor-type-id="MarkdownPreviewEditor">
140
- <state />
141
- </provider>
142
109
  </entry>
143
110
  </file>
144
111
  </leaf>
@@ -163,18 +130,18 @@
163
130
  <option value="$PROJECT_DIR$/spec/sample/lib/sample.rb" />
164
131
  <option value="$PROJECT_DIR$/lib/sample/Rakefile" />
165
132
  <option value="$PROJECT_DIR$/sample/lib/sample.rb" />
166
- <option value="$PROJECT_DIR$/sample/sample.gemspec" />
167
- <option value="$PROJECT_DIR$/sample/Rakefile" />
168
133
  <option value="$PROJECT_DIR$/bin/gemspec_deps_gen.bat" />
169
134
  <option value="$PROJECT_DIR$/lib/gemspec_deps_gen/genspec_deps_gen.rb" />
170
135
  <option value="$PROJECT_DIR$/gemspec_deps_gen.gemspec" />
171
136
  <option value="$PROJECT_DIR$/Rakefile" />
172
- <option value="$PROJECT_DIR$/bin/gemspec_deps_gen" />
173
137
  <option value="$PROJECT_DIR$/README.md" />
174
- <option value="$PROJECT_DIR$/lib/gemspec_deps_gen/gemspec_deps_gen.rb" />
175
- <option value="$PROJECT_DIR$/sample/sample.gemspec.erb" />
176
138
  <option value="$PROJECT_DIR$/lib/gemspec_deps_gen/version.rb" />
177
139
  <option value="$PROJECT_DIR$/CHANGES" />
140
+ <option value="$PROJECT_DIR$/bin/gemspec_deps_gen" />
141
+ <option value="$PROJECT_DIR$/sample/sample.gemspec.erb" />
142
+ <option value="$PROJECT_DIR$/lib/gemspec_deps_gen/gemspec_deps_gen.rb" />
143
+ <option value="$PROJECT_DIR$/sample/sample.gemspec" />
144
+ <option value="$PROJECT_DIR$/sample/Rakefile" />
178
145
  </list>
179
146
  </option>
180
147
  </component>
@@ -297,8 +264,8 @@
297
264
  <property name="options.splitter.main.proportions" value="0.3" />
298
265
  <property name="WebServerToolWindowFactoryState" value="false" />
299
266
  <property name="options.lastSelected" value="org.jetbrains.plugins.ruby.settings.RubyIdeSdkConfigurable" />
300
- <property name="options.splitter.details.proportions" value="0.2" />
301
267
  <property name="options.searchVisible" value="true" />
268
+ <property name="options.splitter.details.proportions" value="0.2" />
302
269
  </component>
303
270
  <component name="RecentsManager">
304
271
  <key name="MoveFile.RECENT_KEYS">
@@ -411,10 +378,10 @@
411
378
  <layout>
412
379
  <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3298647" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
413
380
  <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
414
- <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3298647" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
415
381
  <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
416
382
  <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" />
417
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25616083" sideWeight="0.67013526" order="0" side_tool="false" content_ui="combo" />
383
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.2697795" sideWeight="0.67082036" order="0" side_tool="false" content_ui="combo" />
384
+ <window_info id="Jenkins" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
418
385
  <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
419
386
  <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
420
387
  <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
@@ -423,11 +390,11 @@
423
390
  <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
424
391
  <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
425
392
  <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
393
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3298647" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
426
394
  <window_info id="jenkinsBrowser" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
427
- <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3298647" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
395
+ <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32917964" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
428
396
  <window_info id="CSS-X-Fire" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
429
397
  <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
430
- <window_info id="Jenkins" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
431
398
  <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
432
399
  <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
433
400
  </layout>
@@ -494,19 +461,19 @@
494
461
  <breakpoint-manager />
495
462
  </component>
496
463
  <component name="editorHistoryManager">
497
- <entry file="file://$PROJECT_DIR$/.ruby-gemset">
464
+ <entry file="file://$PROJECT_DIR$/Rakefile">
498
465
  <provider selected="true" editor-type-id="text-editor">
499
- <state line="0" column="16" selection-start="16" selection-end="16" vertical-scroll-proportion="0.0" />
466
+ <state line="21" column="0" selection-start="359" selection-end="359" vertical-scroll-proportion="0.54545456" />
500
467
  </provider>
501
468
  </entry>
502
- <entry file="file://$PROJECT_DIR$/bin/gemspec_deps_gen.bat">
469
+ <entry file="file://$PROJECT_DIR$/Gemfile.lock">
503
470
  <provider selected="true" editor-type-id="text-editor">
504
- <state line="2" column="52" selection-start="97" selection-end="97" vertical-scroll-proportion="0.05059022" />
471
+ <state line="21" column="0" selection-start="427" selection-end="427" vertical-scroll-proportion="0.0" />
505
472
  </provider>
506
473
  </entry>
507
- <entry file="file://$PROJECT_DIR$/sample/Gemfile">
474
+ <entry file="file://$PROJECT_DIR$/Gemfile">
508
475
  <provider selected="true" editor-type-id="text-editor">
509
- <state line="0" column="0" selection-start="0" selection-end="29" vertical-scroll-proportion="0.0">
476
+ <state line="15" column="0" selection-start="181" selection-end="181" vertical-scroll-proportion="0.0">
510
477
  <folding />
511
478
  </state>
512
479
  </provider>
@@ -518,92 +485,92 @@
518
485
  </state>
519
486
  </provider>
520
487
  </entry>
521
- <entry file="file://$PROJECT_DIR$/gemspec_deps_gen.gemspec">
488
+ <entry file="file://$PROJECT_DIR$/sample/Gemfile">
522
489
  <provider selected="true" editor-type-id="text-editor">
523
- <state line="2" column="73" selection-start="100" selection-end="100" vertical-scroll-proportion="0.0">
490
+ <state line="2" column="0" selection-start="31" selection-end="132" vertical-scroll-proportion="0.0">
524
491
  <folding />
525
492
  </state>
526
493
  </provider>
527
494
  </entry>
528
- <entry file="file://$PROJECT_DIR$/Rakefile">
495
+ <entry file="file://$PROJECT_DIR$/README.md">
496
+ <provider editor-type-id="MarkdownPreviewEditor">
497
+ <state />
498
+ </provider>
529
499
  <provider selected="true" editor-type-id="text-editor">
530
- <state line="21" column="0" selection-start="359" selection-end="359" vertical-scroll-proportion="0.54545456">
500
+ <state line="40" column="0" selection-start="804" selection-end="804" vertical-scroll-proportion="-5.5925927">
531
501
  <folding />
532
502
  </state>
533
503
  </provider>
534
504
  </entry>
535
- <entry file="file://$PROJECT_DIR$/sample/sample.gemspec">
505
+ <entry file="file://$PROJECT_DIR$/.ruby-gemset">
536
506
  <provider selected="true" editor-type-id="text-editor">
537
- <state line="20" column="0" selection-start="558" selection-end="558" vertical-scroll-proportion="0.0">
507
+ <state line="0" column="16" selection-start="16" selection-end="16" vertical-scroll-proportion="0.0">
538
508
  <folding />
539
509
  </state>
540
510
  </provider>
541
511
  </entry>
542
- <entry file="file://$PROJECT_DIR$/Gemfile.lock">
512
+ <entry file="file://$PROJECT_DIR$/.ruby-version">
543
513
  <provider selected="true" editor-type-id="text-editor">
544
- <state line="21" column="0" selection-start="427" selection-end="427" vertical-scroll-proportion="0.0">
514
+ <state line="0" column="121" selection-start="5" selection-end="5" vertical-scroll-proportion="0.0">
545
515
  <folding />
546
516
  </state>
547
517
  </provider>
548
518
  </entry>
549
- <entry file="file://$PROJECT_DIR$/bin/gemspec_deps_gen">
519
+ <entry file="file://$PROJECT_DIR$/lib/gemspec_deps_gen/version.rb">
550
520
  <provider selected="true" editor-type-id="text-editor">
551
- <state line="8" column="76" selection-start="222" selection-end="222" vertical-scroll-proportion="0.0">
521
+ <state line="1" column="18" selection-start="39" selection-end="39" vertical-scroll-proportion="0.0">
552
522
  <folding />
553
523
  </state>
554
524
  </provider>
555
525
  </entry>
556
- <entry file="file://$PROJECT_DIR$/lib/gemspec_deps_gen/gemspec_deps_gen.rb">
526
+ <entry file="file://$PROJECT_DIR$/CHANGES">
557
527
  <provider selected="true" editor-type-id="text-editor">
558
- <state line="15" column="43" selection-start="366" selection-end="366" vertical-scroll-proportion="0.0">
528
+ <state line="20" column="24" selection-start="292" selection-end="292" vertical-scroll-proportion="0.0">
559
529
  <folding />
560
530
  </state>
561
531
  </provider>
562
532
  </entry>
563
- <entry file="file://$PROJECT_DIR$/sample/Rakefile">
533
+ <entry file="file://$PROJECT_DIR$/gemspec_deps_gen.gemspec">
564
534
  <provider selected="true" editor-type-id="text-editor">
565
- <state line="8" column="21" selection-start="176" selection-end="176" vertical-scroll-proportion="0.0">
535
+ <state line="2" column="73" selection-start="100" selection-end="100" vertical-scroll-proportion="0.032967035">
566
536
  <folding />
567
537
  </state>
568
538
  </provider>
569
539
  </entry>
570
- <entry file="file://$PROJECT_DIR$/sample/sample.gemspec.erb">
540
+ <entry file="file://$PROJECT_DIR$/sample/sample.gemspec">
571
541
  <provider selected="true" editor-type-id="text-editor">
572
- <state line="14" column="22" selection-start="423" selection-end="423" vertical-scroll-proportion="-8.96">
542
+ <state line="19" column="56" selection-start="557" selection-end="557" vertical-scroll-proportion="0.0">
573
543
  <folding />
574
544
  </state>
575
545
  </provider>
576
546
  </entry>
577
- <entry file="file://$PROJECT_DIR$/Gemfile">
547
+ <entry file="file://$PROJECT_DIR$/lib/gemspec_deps_gen/gemspec_deps_gen.rb">
578
548
  <provider selected="true" editor-type-id="text-editor">
579
- <state line="15" column="0" selection-start="181" selection-end="181" vertical-scroll-proportion="0.0">
549
+ <state line="16" column="31" selection-start="446" selection-end="446" vertical-scroll-proportion="0.0">
580
550
  <folding />
581
551
  </state>
582
552
  </provider>
583
553
  </entry>
584
- <entry file="file://$PROJECT_DIR$/lib/gemspec_deps_gen/version.rb">
554
+ <entry file="file://$PROJECT_DIR$/bin/gemspec_deps_gen">
585
555
  <provider selected="true" editor-type-id="text-editor">
586
- <state line="1" column="18" selection-start="39" selection-end="39" vertical-scroll-proportion="0.02698145">
556
+ <state line="15" column="127" selection-start="486" selection-end="486" vertical-scroll-proportion="0.0">
587
557
  <folding />
588
558
  </state>
589
559
  </provider>
590
560
  </entry>
591
- <entry file="file://$PROJECT_DIR$/CHANGES">
561
+ <entry file="file://$PROJECT_DIR$/sample/sample.gemspec.erb">
592
562
  <provider selected="true" editor-type-id="text-editor">
593
- <state line="16" column="47" selection-start="237" selection-end="237" vertical-scroll-proportion="0.0">
563
+ <state line="11" column="24" selection-start="388" selection-end="388" vertical-scroll-proportion="-6.875">
594
564
  <folding />
595
565
  </state>
596
566
  </provider>
597
567
  </entry>
598
- <entry file="file://$PROJECT_DIR$/README.md">
568
+ <entry file="file://$PROJECT_DIR$/sample/Rakefile">
599
569
  <provider selected="true" editor-type-id="text-editor">
600
- <state line="44" column="70" selection-start="914" selection-end="914" vertical-scroll-proportion="0.45229682">
570
+ <state line="6" column="32" selection-start="140" selection-end="140" vertical-scroll-proportion="0.096463025">
601
571
  <folding />
602
572
  </state>
603
573
  </provider>
604
- <provider editor-type-id="MarkdownPreviewEditor">
605
- <state />
606
- </provider>
607
574
  </entry>
608
575
  </component>
609
576
  </project>
data/CHANGES CHANGED
@@ -14,4 +14,8 @@
14
14
 
15
15
  == Version 1.1.1
16
16
 
17
- * Refactoring; adding sample gem; cleaning API; bug fixes.
17
+ * Refactoring; adding sample gem; cleaning API; bug fixes.
18
+
19
+ == Version 1.1.2
20
+
21
+ * Extending command line.
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
- # gemspec_deps_gen - gem for generating project dependencies inside gemspec file
1
+ # gemspec_deps_gen
2
+ # gem for generating project dependencies inside gemspec file
2
3
 
3
4
  ## Installation
4
5
 
@@ -12,7 +13,7 @@ And then execute:
12
13
 
13
14
  ## Usage
14
15
 
15
- Create <project_name>.erb file:
16
+ Create <project_name>.gemspec.erb file:
16
17
 
17
18
  ```ruby
18
19
  Gem::Specification.new do |spec|
@@ -39,7 +40,7 @@ Now, run this command:
39
40
 
40
41
 
41
42
  ```bash
42
- gemspec_deps_gen <project_name>
43
+ $ gemspec_deps_gen <project_name>
43
44
  ```
44
45
 
45
46
  It will generate <project_name>.gemspec and replace ERB fragment with dependencies from Gemfile:
@@ -56,6 +57,25 @@ Gem::Specification.new do |spec|
56
57
  end
57
58
  ```
58
59
 
60
+ As alternative, you can call it as rake command:
61
+
62
+ ```rake
63
+ require "gemspec_deps_gen"
64
+
65
+ project_name = <your project name>
66
+
67
+ task :gen do
68
+ generator = GemspecDepsGen.new project_name
69
+
70
+ generator.generate_dependencies "spec", "#{project_name}.gemspec.erb", "#{project_name}.gemspec"
71
+ end
72
+ ```
73
+
74
+ ```bash
75
+ $ rake gen
76
+ ```
77
+
78
+
59
79
  ## Contributing
60
80
 
61
81
  1. Fork it
@@ -4,19 +4,23 @@ $:.unshift(File::join(File::dirname(File::dirname(__FILE__)), "lib"))
4
4
 
5
5
  require 'gemspec_deps_gen'
6
6
 
7
- USAGE= <<-TEXT
7
+ USAGE = <<-TEXT
8
8
  Usage:
9
- gemspec_deps_gen project_name - generates .gemspec file with included dependencies from Gemspec file
9
+ gemspec_deps_gen in_template <out_file> - generates .gemspec file from template based on dependencies from Gemspec file
10
+ where in_template - input gemspec erb template
11
+ out_file - generated gemspec file
12
+ if second parameter is missing, result will be outputted to console.
10
13
  TEXT
11
14
 
12
15
  if ARGV.size == 0
13
16
  puts USAGE
14
17
  else
15
- project_name = ARGV.shift
18
+ in_template = ARGV.shift
19
+ out_file = ARGV.size == 1 ? ARGV.shift : nil
16
20
 
17
- generator = GemspecDepsGen.new project_name
21
+ generator = GemspecDepsGen.new
18
22
 
19
- generator.generate_dependencies "spec", "#{project_name}.gemspec.erb", "#{project_name}.gemspec"
23
+ generator.generate_dependencies "spec", in_template, out_file
20
24
 
21
- puts "File #{project_name}.gemspec was generated."
25
+ puts "File #{out_file} was generated." if out_file
22
26
  end
@@ -4,10 +4,6 @@ require 'file_utils'
4
4
  class GemspecDepsGen
5
5
  include FileUtils
6
6
 
7
- def initialize project_name
8
- @project_name = project_name
9
- end
10
-
11
7
  def bundler_gems group
12
8
  Bundler.environment.dependencies.select { |d| d.groups.include?(group) }.collect
13
9
  end
@@ -15,7 +11,11 @@ class GemspecDepsGen
15
11
  def generate_dependencies spec_name, source, target
16
12
  project_dependencies = generate_project_dependencies spec_name
17
13
 
18
- write_content_to_file(execute_template(source, binding), target)
14
+ if target
15
+ write_content_to_file(execute_template(source, binding), target)
16
+ else
17
+ puts project_dependencies
18
+ end
19
19
  end
20
20
 
21
21
  def generate_project_dependencies spec_name
@@ -1,3 +1,3 @@
1
1
  class GemspecDepsGen
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
@@ -4,7 +4,7 @@ project_name = "sample"
4
4
  version = "1.0.0"
5
5
 
6
6
  task :gen do
7
- generator = GemspecDepsGen.new project_name
7
+ generator = GemspecDepsGen.new
8
8
 
9
9
  generator.generate_dependencies "spec", "#{project_name}.gemspec.erb", "#{project_name}.gemspec"
10
10
  end
@@ -10,7 +10,6 @@ Gem::Specification.new do |spec|
10
10
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
11
11
 
12
12
  spec.version = "1.0.0"
13
-
14
13
 
15
14
  spec.add_runtime_dependency "bundler", [">= 0"]
16
15
  spec.add_runtime_dependency "file_utils", [">= 0"]
@@ -10,7 +10,6 @@ Gem::Specification.new do |spec|
10
10
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
11
11
 
12
12
  spec.version = "1.0.0"
13
-
14
13
  <%= project_dependencies %>
15
14
  end
16
15
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemspec_deps_gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shvets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-12 00:00:00.000000000 Z
11
+ date: 2013-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: file_utils
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  requirements: []
95
95
  rubyforge_project:
96
- rubygems_version: 2.0.5
96
+ rubygems_version: 2.0.3
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: Class for generating gem dependencies from Gemfile