modyo 0.0.1 → 0.0.2
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.
- data/.gitignore +2 -1
- data/.idea/workspace.xml +127 -107
- data/README.rdoc +42 -47
- data/ad +77 -0
- data/modyo-0.0.1.gem +0 -0
- data/modyo.gemspec +2 -2
- metadata +7 -5
data/.gitignore
CHANGED
data/.idea/workspace.xml
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="ChangeListManager">
|
|
4
|
-
<list default="true" id="4624b2c2-e2da-4344-a460-6a7cf058d3f9" name="Default" comment=""
|
|
5
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
|
6
|
-
</list>
|
|
4
|
+
<list default="true" id="4624b2c2-e2da-4344-a460-6a7cf058d3f9" name="Default" comment="" />
|
|
7
5
|
<ignored path="modyo.iws" />
|
|
8
6
|
<ignored path=".idea/workspace.xml" />
|
|
9
7
|
<option name="TRACKING_ENABLED" value="true" />
|
|
@@ -45,7 +43,16 @@
|
|
|
45
43
|
<file leaf-file-name="modyo.gemspec" pinned="false" current="true" current-in-tab="true">
|
|
46
44
|
<entry file="file://$PROJECT_DIR$/modyo.gemspec">
|
|
47
45
|
<provider selected="true" editor-type-id="text-editor">
|
|
48
|
-
<state line="
|
|
46
|
+
<state line="7" column="20" selection-start="365" selection-end="365" vertical-scroll-proportion="0.12">
|
|
47
|
+
<folding />
|
|
48
|
+
</state>
|
|
49
|
+
</provider>
|
|
50
|
+
</entry>
|
|
51
|
+
</file>
|
|
52
|
+
<file leaf-file-name="authenticate.rb" pinned="false" current="false" current-in-tab="false">
|
|
53
|
+
<entry file="file://$PROJECT_DIR$/app/models/modyo/authenticate.rb">
|
|
54
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
55
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
|
|
49
56
|
<folding />
|
|
50
57
|
</state>
|
|
51
58
|
</provider>
|
|
@@ -63,7 +70,7 @@
|
|
|
63
70
|
<file leaf-file-name="README.rdoc" pinned="false" current="false" current-in-tab="false">
|
|
64
71
|
<entry file="file://$PROJECT_DIR$/README.rdoc">
|
|
65
72
|
<provider selected="true" editor-type-id="text-editor">
|
|
66
|
-
<state line="
|
|
73
|
+
<state line="4" column="48" selection-start="89" selection-end="89" vertical-scroll-proportion="0.0">
|
|
67
74
|
<folding />
|
|
68
75
|
</state>
|
|
69
76
|
</provider>
|
|
@@ -72,7 +79,7 @@
|
|
|
72
79
|
<file leaf-file-name="modyo_controller.rb" pinned="false" current="false" current-in-tab="false">
|
|
73
80
|
<entry file="file://$PROJECT_DIR$/app/controllers/modyo/modyo_controller.rb">
|
|
74
81
|
<provider selected="true" editor-type-id="text-editor">
|
|
75
|
-
<state line="
|
|
82
|
+
<state line="39" column="9" selection-start="1637" selection-end="1637" vertical-scroll-proportion="0.0">
|
|
76
83
|
<folding />
|
|
77
84
|
</state>
|
|
78
85
|
</provider>
|
|
@@ -89,6 +96,11 @@
|
|
|
89
96
|
</file>
|
|
90
97
|
</leaf>
|
|
91
98
|
</component>
|
|
99
|
+
<component name="FindManager">
|
|
100
|
+
<FindUsagesManager>
|
|
101
|
+
<setting name="OPEN_NEW_TAB" value="false" />
|
|
102
|
+
</FindUsagesManager>
|
|
103
|
+
</component>
|
|
92
104
|
<component name="Git.Settings">
|
|
93
105
|
<option name="CHECKOUT_INCLUDE_TAGS" value="false" />
|
|
94
106
|
<option name="UPDATE_CHANGES_POLICY" value="STASH" />
|
|
@@ -103,10 +115,10 @@
|
|
|
103
115
|
</option>
|
|
104
116
|
</component>
|
|
105
117
|
<component name="ProjectFrameBounds">
|
|
106
|
-
<option name="x" value="-
|
|
107
|
-
<option name="y" value="
|
|
108
|
-
<option name="width" value="
|
|
109
|
-
<option name="height" value="
|
|
118
|
+
<option name="x" value="-1" />
|
|
119
|
+
<option name="y" value="-1056" />
|
|
120
|
+
<option name="width" value="1922" />
|
|
121
|
+
<option name="height" value="1033" />
|
|
110
122
|
</component>
|
|
111
123
|
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
|
112
124
|
<OptionsSetting value="true" id="Add" />
|
|
@@ -134,69 +146,23 @@
|
|
|
134
146
|
<sortByType />
|
|
135
147
|
</navigator>
|
|
136
148
|
<panes>
|
|
137
|
-
<pane id="
|
|
138
|
-
<subPane>
|
|
139
|
-
<PATH>
|
|
140
|
-
<PATH_ELEMENT>
|
|
141
|
-
<option name="myItemId" value="modyo" />
|
|
142
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
143
|
-
</PATH_ELEMENT>
|
|
144
|
-
</PATH>
|
|
145
|
-
<PATH>
|
|
146
|
-
<PATH_ELEMENT>
|
|
147
|
-
<option name="myItemId" value="modyo" />
|
|
148
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
149
|
-
</PATH_ELEMENT>
|
|
150
|
-
<PATH_ELEMENT>
|
|
151
|
-
<option name="myItemId" value="modyo" />
|
|
152
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
153
|
-
</PATH_ELEMENT>
|
|
154
|
-
</PATH>
|
|
155
|
-
<PATH>
|
|
156
|
-
<PATH_ELEMENT>
|
|
157
|
-
<option name="myItemId" value="modyo" />
|
|
158
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
159
|
-
</PATH_ELEMENT>
|
|
160
|
-
<PATH_ELEMENT>
|
|
161
|
-
<option name="myItemId" value="modyo" />
|
|
162
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
163
|
-
</PATH_ELEMENT>
|
|
164
|
-
<PATH_ELEMENT>
|
|
165
|
-
<option name="myItemId" value="lib" />
|
|
166
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
167
|
-
</PATH_ELEMENT>
|
|
168
|
-
</PATH>
|
|
149
|
+
<pane id="Scope">
|
|
150
|
+
<subPane subId="Project Files">
|
|
169
151
|
<PATH>
|
|
170
|
-
<PATH_ELEMENT>
|
|
171
|
-
<option name="myItemId" value="
|
|
172
|
-
<option name="myItemType" value="
|
|
173
|
-
</PATH_ELEMENT>
|
|
174
|
-
<PATH_ELEMENT>
|
|
175
|
-
<option name="myItemId" value="modyo" />
|
|
176
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
177
|
-
</PATH_ELEMENT>
|
|
178
|
-
<PATH_ELEMENT>
|
|
179
|
-
<option name="myItemId" value="lib" />
|
|
180
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
181
|
-
</PATH_ELEMENT>
|
|
182
|
-
<PATH_ELEMENT>
|
|
183
|
-
<option name="myItemId" value="modyo" />
|
|
184
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
152
|
+
<PATH_ELEMENT USER_OBJECT="Root">
|
|
153
|
+
<option name="myItemId" value="" />
|
|
154
|
+
<option name="myItemType" value="" />
|
|
185
155
|
</PATH_ELEMENT>
|
|
186
156
|
</PATH>
|
|
157
|
+
</subPane>
|
|
158
|
+
</pane>
|
|
159
|
+
<pane id="ProjectPane">
|
|
160
|
+
<subPane>
|
|
187
161
|
<PATH>
|
|
188
162
|
<PATH_ELEMENT>
|
|
189
163
|
<option name="myItemId" value="modyo" />
|
|
190
164
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
191
165
|
</PATH_ELEMENT>
|
|
192
|
-
<PATH_ELEMENT>
|
|
193
|
-
<option name="myItemId" value="modyo" />
|
|
194
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
195
|
-
</PATH_ELEMENT>
|
|
196
|
-
<PATH_ELEMENT>
|
|
197
|
-
<option name="myItemId" value="app" />
|
|
198
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
199
|
-
</PATH_ELEMENT>
|
|
200
166
|
</PATH>
|
|
201
167
|
<PATH>
|
|
202
168
|
<PATH_ELEMENT>
|
|
@@ -207,28 +173,6 @@
|
|
|
207
173
|
<option name="myItemId" value="modyo" />
|
|
208
174
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
209
175
|
</PATH_ELEMENT>
|
|
210
|
-
<PATH_ELEMENT>
|
|
211
|
-
<option name="myItemId" value="app" />
|
|
212
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
213
|
-
</PATH_ELEMENT>
|
|
214
|
-
<PATH_ELEMENT>
|
|
215
|
-
<option name="myItemId" value="controllers" />
|
|
216
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
217
|
-
</PATH_ELEMENT>
|
|
218
|
-
<PATH_ELEMENT>
|
|
219
|
-
<option name="myItemId" value="modyo" />
|
|
220
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
221
|
-
</PATH_ELEMENT>
|
|
222
|
-
</PATH>
|
|
223
|
-
</subPane>
|
|
224
|
-
</pane>
|
|
225
|
-
<pane id="Scope">
|
|
226
|
-
<subPane subId="Project Files">
|
|
227
|
-
<PATH>
|
|
228
|
-
<PATH_ELEMENT USER_OBJECT="Root">
|
|
229
|
-
<option name="myItemId" value="" />
|
|
230
|
-
<option name="myItemType" value="" />
|
|
231
|
-
</PATH_ELEMENT>
|
|
232
176
|
</PATH>
|
|
233
177
|
</subPane>
|
|
234
178
|
</pane>
|
|
@@ -238,6 +182,77 @@
|
|
|
238
182
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
239
183
|
</component>
|
|
240
184
|
<component name="RunManager">
|
|
185
|
+
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
|
186
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
187
|
+
<module name="" />
|
|
188
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
189
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
|
190
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
191
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
192
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
193
|
+
<envs />
|
|
194
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
195
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
196
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
197
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
198
|
+
</COVERAGE_PATTERN>
|
|
199
|
+
</EXTENSION>
|
|
200
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
201
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
|
202
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
203
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
204
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
|
205
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
206
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
207
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
208
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
|
209
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
210
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
211
|
+
<method />
|
|
212
|
+
</configuration>
|
|
213
|
+
<configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
|
|
214
|
+
<module name="" />
|
|
215
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
216
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
|
|
217
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
218
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
219
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
|
220
|
+
<envs />
|
|
221
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
222
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
223
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
224
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
225
|
+
</COVERAGE_PATTERN>
|
|
226
|
+
</EXTENSION>
|
|
227
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
|
|
228
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
|
229
|
+
<method />
|
|
230
|
+
</configuration>
|
|
231
|
+
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
|
|
232
|
+
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
|
233
|
+
<module name="" />
|
|
234
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
235
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
|
236
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
237
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
238
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
239
|
+
<envs />
|
|
240
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
241
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
242
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
243
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
244
|
+
</COVERAGE_PATTERN>
|
|
245
|
+
</EXTENSION>
|
|
246
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
247
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
|
248
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_CLASS_NAME" VALUE="" />
|
|
249
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
|
250
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
|
251
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
252
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="INHERITANCE_CHECK_DISABLED" VALUE="false" />
|
|
253
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
254
|
+
<method />
|
|
255
|
+
</configuration>
|
|
241
256
|
<list size="0" />
|
|
242
257
|
</component>
|
|
243
258
|
<component name="ShelveChangesManager" show_recycled="false" />
|
|
@@ -273,11 +288,15 @@
|
|
|
273
288
|
<created>1327962800892</created>
|
|
274
289
|
<updated>1327962800892</updated>
|
|
275
290
|
</task>
|
|
276
|
-
<
|
|
291
|
+
<task id="LOCAL-00003" summary=""Readme changes"">
|
|
292
|
+
<created>1328539368569</created>
|
|
293
|
+
<updated>1328539368569</updated>
|
|
294
|
+
</task>
|
|
295
|
+
<option name="localTasksCounter" value="4" />
|
|
277
296
|
<servers />
|
|
278
297
|
</component>
|
|
279
298
|
<component name="ToolWindowManager">
|
|
280
|
-
<frame x="-
|
|
299
|
+
<frame x="-1" y="-1056" width="1922" height="1033" extended-state="6" />
|
|
281
300
|
<editor active="true" />
|
|
282
301
|
<layout>
|
|
283
302
|
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32890365" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
@@ -285,10 +304,10 @@
|
|
|
285
304
|
<window_info id="Changes" 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" />
|
|
286
305
|
<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" />
|
|
287
306
|
<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" />
|
|
288
|
-
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.
|
|
307
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.2593583" sideWeight="0.6710963" order="0" side_tool="false" content_ui="combo" />
|
|
289
308
|
<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" />
|
|
290
309
|
<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" />
|
|
291
|
-
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.
|
|
310
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32890365" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
|
292
311
|
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
|
293
312
|
<window_info id="Version Control" 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" />
|
|
294
313
|
<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" />
|
|
@@ -354,57 +373,58 @@
|
|
|
354
373
|
<breakpoint-manager />
|
|
355
374
|
</component>
|
|
356
375
|
<component name="editorHistoryManager">
|
|
357
|
-
<entry file="file://$PROJECT_DIR$/
|
|
376
|
+
<entry file="file://$PROJECT_DIR$/README">
|
|
358
377
|
<provider selected="true" editor-type-id="text-editor">
|
|
359
378
|
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
|
|
360
379
|
</provider>
|
|
361
380
|
</entry>
|
|
362
|
-
<entry file="file://$PROJECT_DIR$/
|
|
381
|
+
<entry file="file://$PROJECT_DIR$/ad">
|
|
363
382
|
<provider selected="true" editor-type-id="text-editor">
|
|
364
383
|
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
|
|
365
384
|
</provider>
|
|
366
385
|
</entry>
|
|
367
|
-
<entry file="file://$PROJECT_DIR$/
|
|
386
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
|
368
387
|
<provider selected="true" editor-type-id="text-editor">
|
|
369
388
|
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
|
|
370
389
|
</provider>
|
|
371
390
|
</entry>
|
|
372
|
-
<entry file="file://$PROJECT_DIR$/
|
|
391
|
+
<entry file="file://$PROJECT_DIR$/Gemfile.lock">
|
|
373
392
|
<provider selected="true" editor-type-id="text-editor">
|
|
374
|
-
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0"
|
|
375
|
-
<folding />
|
|
376
|
-
</state>
|
|
393
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
|
|
377
394
|
</provider>
|
|
378
395
|
</entry>
|
|
379
|
-
<entry file="file://$PROJECT_DIR$/
|
|
396
|
+
<entry file="file://$PROJECT_DIR$/app/models/modyo/authenticate.rb">
|
|
380
397
|
<provider selected="true" editor-type-id="text-editor">
|
|
381
398
|
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
|
|
382
399
|
</provider>
|
|
383
400
|
</entry>
|
|
384
|
-
<entry file="file://$PROJECT_DIR$/
|
|
401
|
+
<entry file="file://$PROJECT_DIR$/lib/modyo/engine.rb">
|
|
385
402
|
<provider selected="true" editor-type-id="text-editor">
|
|
386
|
-
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0"
|
|
387
|
-
<folding />
|
|
388
|
-
</state>
|
|
403
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
|
|
389
404
|
</provider>
|
|
390
405
|
</entry>
|
|
391
406
|
<entry file="file://$PROJECT_DIR$/README.rdoc">
|
|
392
407
|
<provider selected="true" editor-type-id="text-editor">
|
|
393
|
-
<state line="
|
|
408
|
+
<state line="4" column="48" selection-start="89" selection-end="89" vertical-scroll-proportion="0.0">
|
|
394
409
|
<folding />
|
|
395
410
|
</state>
|
|
396
411
|
</provider>
|
|
397
412
|
</entry>
|
|
398
|
-
<entry file="file://$PROJECT_DIR$/
|
|
413
|
+
<entry file="file://$PROJECT_DIR$/lib/modyo.rb">
|
|
414
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
415
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
|
|
416
|
+
</provider>
|
|
417
|
+
</entry>
|
|
418
|
+
<entry file="file://$PROJECT_DIR$/app/controllers/modyo/modyo_controller.rb">
|
|
399
419
|
<provider selected="true" editor-type-id="text-editor">
|
|
400
|
-
<state line="
|
|
420
|
+
<state line="39" column="9" selection-start="1637" selection-end="1637" vertical-scroll-proportion="0.0">
|
|
401
421
|
<folding />
|
|
402
422
|
</state>
|
|
403
423
|
</provider>
|
|
404
424
|
</entry>
|
|
405
425
|
<entry file="file://$PROJECT_DIR$/modyo.gemspec">
|
|
406
426
|
<provider selected="true" editor-type-id="text-editor">
|
|
407
|
-
<state line="
|
|
427
|
+
<state line="7" column="20" selection-start="365" selection-end="365" vertical-scroll-proportion="0.12">
|
|
408
428
|
<folding />
|
|
409
429
|
</state>
|
|
410
430
|
</provider>
|
data/README.rdoc
CHANGED
|
@@ -1,70 +1,65 @@
|
|
|
1
1
|
= Modyo Connect Gem version 0.0.1
|
|
2
2
|
|
|
3
3
|
Install
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
gem 'modyo', :git => 'git://github.com/modyo/modyo-client.git'
|
|
4
|
+
If you're using Bundle add this your gemfile:
|
|
8
5
|
|
|
6
|
+
gem 'modyo', :git => 'git://github.com/modyo/modyo.git'
|
|
9
7
|
|
|
10
8
|
Add to your app the following files:
|
|
11
9
|
(/config/initializers/modyo.rb)
|
|
12
10
|
|
|
13
11
|
|
|
14
|
-
require 'oauth'
|
|
15
|
-
require 'nokogiri'
|
|
16
|
-
|
|
17
|
-
::MODYO = {}
|
|
18
|
-
|
|
19
|
-
begin
|
|
20
|
-
yaml_file = YAML.load_file("#{Rails.root}/config/modyo.yml")
|
|
21
|
-
rescue Exception => e
|
|
22
|
-
raise StandardError, "config/modyo.yml could not be loaded."
|
|
23
|
-
end
|
|
12
|
+
require 'oauth'
|
|
13
|
+
require 'nokogiri'
|
|
24
14
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
::MODYO = {}
|
|
16
|
+
begin
|
|
17
|
+
yaml_file = YAML.load_file("#{Rails.root}/config/modyo.yml")
|
|
18
|
+
|
|
19
|
+
rescue Exception => e
|
|
20
|
+
raise StandardError, "config/modyo.yml could not be loaded."
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
if yaml_file
|
|
24
|
+
if yaml_file[Rails.env]
|
|
25
|
+
MODYO.merge!(yaml_file[Rails.env])
|
|
26
|
+
else
|
|
27
|
+
raise StandardError, "config/modyo.yml exists, but doesn't have a configuration for RAILS_ENV=#{RAILS_ENV}."
|
|
28
|
+
end
|
|
29
|
+
else
|
|
30
|
+
raise StandardError, "config/modyo.yml does not exist."
|
|
31
|
+
end
|
|
34
32
|
|
|
35
33
|
|
|
36
34
|
|
|
37
35
|
(/config/modyo.yml)
|
|
38
36
|
|
|
39
37
|
|
|
40
|
-
development:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
development:
|
|
39
|
+
key: <your-modyo-key>
|
|
40
|
+
secret: <your-modyo-secret>
|
|
41
|
+
site: http://www.<your-modyo-site>.com
|
|
44
42
|
|
|
45
|
-
test:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
test:
|
|
44
|
+
key: <your-modyo-key>
|
|
45
|
+
secret: <your-modyo-secret>
|
|
46
|
+
site: http://www.<your-modyo-site>.com
|
|
49
47
|
|
|
50
|
-
production:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
production:
|
|
49
|
+
key: <your-modyo-key>
|
|
50
|
+
secret: <your-modyo-secret>
|
|
51
|
+
site: http://www.<your-modyo-site>.com
|
|
52
|
+
|
|
55
53
|
|
|
56
|
-
|
|
54
|
+
Now is available the method authenticate_with_modyo, that will return the session[:user] variable with an authenticated user ( see below a controller example).
|
|
57
55
|
|
|
56
|
+
class SessionController < ApplicationController
|
|
57
|
+
protect_from_forgery
|
|
58
|
+
before_filter :authenticate_with_modyo , :only => 'login'
|
|
59
|
+
def login
|
|
58
60
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
before_filter :authenticate_with_modyo , :only => 'login'
|
|
63
|
-
def login
|
|
64
|
-
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
`
|
|
68
|
-
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
69
64
|
|
|
70
65
|
This project rocks and uses MIT-LICENSE.
|
data/ad
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
commit 95e5a24e42e6d8788a400940b8ff8d75bab41bde
|
|
2
|
+
Author: ivangrx <ivangrx@gmail.com>
|
|
3
|
+
Date: Mon Jan 30 19:34:30 2012 -0300
|
|
4
|
+
|
|
5
|
+
Readme changes
|
|
6
|
+
|
|
7
|
+
commit e9e8102c8659a4cb94c2a13b57c3fc219cbd0ae9
|
|
8
|
+
Author: ivangrx <ivangrx@gmail.com>
|
|
9
|
+
Date: Mon Jan 30 19:33:20 2012 -0300
|
|
10
|
+
|
|
11
|
+
"Readme changes"
|
|
12
|
+
|
|
13
|
+
commit d0225dbef20d89101a7b4ebec0e28919f77021f8
|
|
14
|
+
Author: ivangrx <ivangrx@gmail.com>
|
|
15
|
+
Date: Mon Jan 30 19:30:55 2012 -0300
|
|
16
|
+
|
|
17
|
+
"Readme changes"
|
|
18
|
+
|
|
19
|
+
commit 82a345a59a459652e899a38ee4ecc48ca6d3a07f
|
|
20
|
+
Author: ivangrx <ivangrx@gmail.com>
|
|
21
|
+
Date: Mon Jan 30 15:53:11 2012 -0300
|
|
22
|
+
|
|
23
|
+
Nekogiri integration
|
|
24
|
+
|
|
25
|
+
commit d64b08481cb307bb4ac5a7584ed9a16a7e114a52
|
|
26
|
+
Author: ivangrx <ivangrx@gmail.com>
|
|
27
|
+
Date: Mon Jan 30 15:48:06 2012 -0300
|
|
28
|
+
|
|
29
|
+
Nekogiri integration
|
|
30
|
+
|
|
31
|
+
commit f41de5d8100cf6908dd2668b8e51b580550e3e7b
|
|
32
|
+
Author: ivangrx <ivangrx@gmail.com>
|
|
33
|
+
Date: Mon Jan 30 15:41:01 2012 -0300
|
|
34
|
+
|
|
35
|
+
Nekogiri integration
|
|
36
|
+
|
|
37
|
+
commit 6607b80db7cdb99ca9b0a2ac30a18dc296296456
|
|
38
|
+
Author: ivangrx <ivangrx@gmail.com>
|
|
39
|
+
Date: Mon Jan 30 15:33:10 2012 -0300
|
|
40
|
+
|
|
41
|
+
Nekogiri parser
|
|
42
|
+
|
|
43
|
+
commit 30480229b7d2ed6ae319d48cdc3e0c0af4975407
|
|
44
|
+
Author: ivangrx <ivangrx@gmail.com>
|
|
45
|
+
Date: Mon Jan 30 15:28:56 2012 -0300
|
|
46
|
+
|
|
47
|
+
Modyo Nekorigi gem
|
|
48
|
+
|
|
49
|
+
commit 65d810eb5ae69e5e88b162c420b8a3efcd20b3fc
|
|
50
|
+
Author: ivangrx <ivangrx@gmail.com>
|
|
51
|
+
Date: Fri Jan 27 20:17:50 2012 -0300
|
|
52
|
+
|
|
53
|
+
xml defintion changes
|
|
54
|
+
|
|
55
|
+
commit 99afaa253ed8d16d0f1a8acc460098c8599cf4a4
|
|
56
|
+
Author: ivangrx <ivangrx@gmail.com>
|
|
57
|
+
Date: Fri Jan 27 20:04:18 2012 -0300
|
|
58
|
+
|
|
59
|
+
xml defintion changes
|
|
60
|
+
|
|
61
|
+
commit 5d5ea838d87af83299400aff74938549109f7c27
|
|
62
|
+
Author: ivangrx <ivangrx@gmail.com>
|
|
63
|
+
Date: Fri Jan 27 19:14:17 2012 -0300
|
|
64
|
+
|
|
65
|
+
xml defintion changes
|
|
66
|
+
|
|
67
|
+
commit 2dd27b8a90157beda17ab5150f8f47e79b901816
|
|
68
|
+
Author: ivangrx <ivangrx@gmail.com>
|
|
69
|
+
Date: Fri Jan 27 19:06:47 2012 -0300
|
|
70
|
+
|
|
71
|
+
xml defintion changes
|
|
72
|
+
|
|
73
|
+
commit 89b3995581d789c5e319d5eba99243c57a94b3d2
|
|
74
|
+
Author: ivangrx <ivangrx@gmail.com>
|
|
75
|
+
Date: Fri Jan 27 15:45:20 2012 -0300
|
|
76
|
+
|
|
77
|
+
xml defintion changes
|
data/modyo-0.0.1.gem
ADDED
|
Binary file
|
data/modyo.gemspec
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
# project in your rails apps through git.
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = "modyo"
|
|
5
|
-
s.summary = "Modyo plataform
|
|
5
|
+
s.summary = "Modyo plataform"
|
|
6
6
|
s.description = "Gem for connecting to Modyo plataform API."
|
|
7
7
|
s.files = Dir["{app,lib,config}/**/*"] + ["MIT-LICENSE", "Rakefile", "Gemfile", "README.rdoc"]
|
|
8
|
-
s.version = "0.0.
|
|
8
|
+
s.version = "0.0.2"
|
|
9
9
|
s.platform = Gem::Platform::RUBY
|
|
10
10
|
s.authors = [ "Ivan Gonzalez Itech" ]
|
|
11
11
|
s.email = [ "igonzalez@modyo.com" ]
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: modyo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 27
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.0.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Ivan Gonzalez Itech
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2012-
|
|
18
|
+
date: 2012-02-06 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: oauth
|
|
@@ -74,12 +74,14 @@ files:
|
|
|
74
74
|
- README
|
|
75
75
|
- README.rdoc
|
|
76
76
|
- Rakefile
|
|
77
|
+
- ad
|
|
77
78
|
- app/controllers/modyo/modyo_controller.rb
|
|
78
79
|
- app/models/modyo/authenticate.rb
|
|
79
80
|
- config/routes.rb
|
|
80
81
|
- lib/modyo.rb
|
|
81
82
|
- lib/modyo/engine.rb
|
|
82
83
|
- lib/modyo/version.rb
|
|
84
|
+
- modyo-0.0.1.gem
|
|
83
85
|
- modyo.gemspec
|
|
84
86
|
- test/dummy/Rakefile
|
|
85
87
|
- test/dummy/app/controllers/application_controller.rb
|
|
@@ -148,6 +150,6 @@ rubyforge_project:
|
|
|
148
150
|
rubygems_version: 1.8.15
|
|
149
151
|
signing_key:
|
|
150
152
|
specification_version: 3
|
|
151
|
-
summary: modyo-0.0.
|
|
153
|
+
summary: modyo-0.0.2
|
|
152
154
|
test_files: []
|
|
153
155
|
|