social-bee 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/.idea/.name +1 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/encodings.xml +5 -0
- data/.idea/misc.xml +11 -0
- data/.idea/modules.xml +9 -0
- data/.idea/social-bee.iml +23 -0
- data/.idea/vcs.xml +7 -0
- data/.idea/workspace.xml +400 -0
- data/Gemfile +4 -0
- data/README +0 -0
- data/lib/social-bee.rb +9 -4
- data/lib/social-bee/facebook.rb +33 -0
- data/lib/social-bee/twi.rb +24 -0
- data/lib/social-bee/version.rb +1 -1
- data/lib/social-bee/vkontakte.rb +20 -0
- metadata +14 -2
data/.idea/.name
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
social-bee
|
data/.idea/.rakeTasks
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<Settings><!--This file was automatically generated by Ruby plugin.
|
|
3
|
+
You are allowed to:
|
|
4
|
+
1. Remove rake task
|
|
5
|
+
2. Add existing rake tasks
|
|
6
|
+
To add existing rake tasks automatically delete this file and reload the project.
|
|
7
|
+
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build social-bee-0.0.1.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Build and install social-bee-0.0.1.gem into system gems" fullCmd="install" taksId="install" /><RakeTask description="Create tag v0.0.1 and build and push social-bee-0.0.1.gem to Rubygems" fullCmd="release" taksId="release" /></RakeGroup></Settings>
|
data/.idea/encodings.xml
ADDED
data/.idea/misc.xml
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="DependencyValidationManager">
|
|
4
|
+
<option name="SKIP_IMPORT_STATEMENTS" value="false" />
|
|
5
|
+
</component>
|
|
6
|
+
<component name="ProjectResources">
|
|
7
|
+
<default-html-doctype>http://www.w3.org/1999/xhtml</default-html-doctype>
|
|
8
|
+
</component>
|
|
9
|
+
<component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.3-head [31rc5]" project-jdk-type="RUBY_SDK" />
|
|
10
|
+
</project>
|
|
11
|
+
|
data/.idea/modules.xml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/social-bee.iml" filepath="$PROJECT_DIR$/.idea/social-bee.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
|
9
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$" />
|
|
5
|
+
<orderEntry type="inheritedJdk" />
|
|
6
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
|
+
<orderEntry type="library" scope="PROVIDED" name="koala (v1.2.0, RVM: ruby-1.9.3-head [31rc5]) [gem]" level="application" />
|
|
8
|
+
<orderEntry type="library" scope="PROVIDED" name="faraday_middleware (v0.7.0, RVM: ruby-1.9.3-head [31rc5]) [gem]" level="application" />
|
|
9
|
+
<orderEntry type="library" scope="PROVIDED" name="transformer (v0.1.0, RVM: ruby-1.9.3-head [31rc5]) [gem]" level="application" />
|
|
10
|
+
<orderEntry type="library" scope="PROVIDED" name="multi_xml (v0.4.1, RVM: ruby-1.9.3-head [31rc5]) [gem]" level="application" />
|
|
11
|
+
<orderEntry type="library" scope="PROVIDED" name="hashie (v1.1.0, RVM: ruby-1.9.3-head [31rc5]) [gem]" level="application" />
|
|
12
|
+
<orderEntry type="library" scope="PROVIDED" name="multipart-post (v1.1.3, RVM: ruby-1.9.3-head [31rc5]) [gem]" level="application" />
|
|
13
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.0.18, RVM: ruby-1.9.3-head [31rc5]) [gem]" level="application" />
|
|
14
|
+
<orderEntry type="library" scope="PROVIDED" name="addressable (v2.2.6, RVM: ruby-1.9.3-head [31rc5]) [gem]" level="application" />
|
|
15
|
+
<orderEntry type="library" scope="PROVIDED" name="multi_json (v1.0.3, RVM: ruby-1.9.3-head [31rc5]) [gem]" level="application" />
|
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="simple_oauth (v0.1.5, RVM: ruby-1.9.3-head [31rc5]) [gem]" level="application" />
|
|
17
|
+
<orderEntry type="library" scope="PROVIDED" name="twitter (v1.7.2, RVM: ruby-1.9.3-head [31rc5]) [gem]" level="application" />
|
|
18
|
+
<orderEntry type="library" scope="PROVIDED" name="rack (v1.3.3, RVM: ruby-1.9.3-head [31rc5]) [gem]" level="application" />
|
|
19
|
+
<orderEntry type="library" scope="PROVIDED" name="vk-ruby (v0.6.22, RVM: ruby-1.9.3-head [31rc5]) [gem]" level="application" />
|
|
20
|
+
<orderEntry type="library" scope="PROVIDED" name="faraday (v0.7.4, RVM: ruby-1.9.3-head [31rc5]) [gem]" level="application" />
|
|
21
|
+
</component>
|
|
22
|
+
</module>
|
|
23
|
+
|
data/.idea/vcs.xml
ADDED
data/.idea/workspace.xml
ADDED
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ChangeListManager">
|
|
4
|
+
<list default="true" id="9b567d4b-4a32-4942-80d0-6d4c30dd9b8a" name="Default" comment="">
|
|
5
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
|
6
|
+
</list>
|
|
7
|
+
<ignored path="social-bee.iws" />
|
|
8
|
+
<ignored path=".idea/workspace.xml" />
|
|
9
|
+
<option name="TRACKING_ENABLED" value="true" />
|
|
10
|
+
<option name="SHOW_DIALOG" value="false" />
|
|
11
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
12
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
13
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
14
|
+
</component>
|
|
15
|
+
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
|
16
|
+
<component name="CreatePatchCommitExecutor">
|
|
17
|
+
<option name="PATCH_PATH" value="" />
|
|
18
|
+
<option name="REVERSE_PATCH" value="false" />
|
|
19
|
+
</component>
|
|
20
|
+
<component name="DaemonCodeAnalyzer">
|
|
21
|
+
<disable_hints />
|
|
22
|
+
</component>
|
|
23
|
+
<component name="FavoritesManager">
|
|
24
|
+
<favorites_list name="social-bee" />
|
|
25
|
+
</component>
|
|
26
|
+
<component name="FileEditorManager">
|
|
27
|
+
<leaf>
|
|
28
|
+
<file leaf-file-name="social-bee.rb" pinned="false" current="true" current-in-tab="true">
|
|
29
|
+
<entry file="file://$PROJECT_DIR$/lib/social-bee.rb">
|
|
30
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
31
|
+
<state line="11" column="53" selection-start="179" selection-end="179" vertical-scroll-proportion="0.22335026">
|
|
32
|
+
<folding />
|
|
33
|
+
</state>
|
|
34
|
+
</provider>
|
|
35
|
+
</entry>
|
|
36
|
+
</file>
|
|
37
|
+
<file leaf-file-name="Gemfile" pinned="false" current="false" current-in-tab="false">
|
|
38
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
|
39
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
40
|
+
<state line="4" column="13" selection-start="69" selection-end="69" vertical-scroll-proportion="0.0">
|
|
41
|
+
<folding />
|
|
42
|
+
</state>
|
|
43
|
+
</provider>
|
|
44
|
+
</entry>
|
|
45
|
+
</file>
|
|
46
|
+
<file leaf-file-name="twi.rb" pinned="false" current="false" current-in-tab="false">
|
|
47
|
+
<entry file="file://$PROJECT_DIR$/lib/social-bee/twi.rb">
|
|
48
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
49
|
+
<state line="17" column="35" selection-start="487" selection-end="487" vertical-scroll-proportion="0.0">
|
|
50
|
+
<folding />
|
|
51
|
+
</state>
|
|
52
|
+
</provider>
|
|
53
|
+
</entry>
|
|
54
|
+
</file>
|
|
55
|
+
<file leaf-file-name="facebook.rb" pinned="false" current="false" current-in-tab="false">
|
|
56
|
+
<entry file="file://$PROJECT_DIR$/lib/social-bee/facebook.rb">
|
|
57
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
58
|
+
<state line="6" column="4" selection-start="59" selection-end="293" vertical-scroll-proportion="0.0">
|
|
59
|
+
<folding />
|
|
60
|
+
</state>
|
|
61
|
+
</provider>
|
|
62
|
+
</entry>
|
|
63
|
+
</file>
|
|
64
|
+
<file leaf-file-name="vkontakte.rb" pinned="false" current="false" current-in-tab="false">
|
|
65
|
+
<entry file="file://$PROJECT_DIR$/lib/social-bee/vkontakte.rb">
|
|
66
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
67
|
+
<state line="12" column="74" selection-start="335" selection-end="335" vertical-scroll-proportion="0.0">
|
|
68
|
+
<folding />
|
|
69
|
+
</state>
|
|
70
|
+
</provider>
|
|
71
|
+
</entry>
|
|
72
|
+
</file>
|
|
73
|
+
</leaf>
|
|
74
|
+
</component>
|
|
75
|
+
<component name="FindManager">
|
|
76
|
+
<FindUsagesManager>
|
|
77
|
+
<setting name="OPEN_NEW_TAB" value="false" />
|
|
78
|
+
</FindUsagesManager>
|
|
79
|
+
</component>
|
|
80
|
+
<component name="Git.Settings">
|
|
81
|
+
<option name="CHECKOUT_INCLUDE_TAGS" value="false" />
|
|
82
|
+
<option name="UPDATE_CHANGES_POLICY" value="STASH" />
|
|
83
|
+
</component>
|
|
84
|
+
<component name="IdeDocumentHistory">
|
|
85
|
+
<option name="changedFiles">
|
|
86
|
+
<list>
|
|
87
|
+
<option value="$PROJECT_DIR$/lib/social-bee/twitter.rb" />
|
|
88
|
+
<option value="$PROJECT_DIR$/lib/social-bee/facebook.rb" />
|
|
89
|
+
<option value="$PROJECT_DIR$/Gemfile" />
|
|
90
|
+
<option value="$PROJECT_DIR$/lib/social-bee.rb" />
|
|
91
|
+
<option value="$PROJECT_DIR$/lib/social-bee/vkontakte.rb" />
|
|
92
|
+
</list>
|
|
93
|
+
</option>
|
|
94
|
+
</component>
|
|
95
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
|
96
|
+
<OptionsSetting value="true" id="Add" />
|
|
97
|
+
<OptionsSetting value="true" id="Remove" />
|
|
98
|
+
<OptionsSetting value="true" id="Checkout" />
|
|
99
|
+
<OptionsSetting value="true" id="Update" />
|
|
100
|
+
<OptionsSetting value="true" id="Status" />
|
|
101
|
+
<OptionsSetting value="true" id="Edit" />
|
|
102
|
+
<ConfirmationsSetting value="0" id="Add" />
|
|
103
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
|
104
|
+
</component>
|
|
105
|
+
<component name="ProjectReloadState">
|
|
106
|
+
<option name="STATE" value="0" />
|
|
107
|
+
</component>
|
|
108
|
+
<component name="ProjectView">
|
|
109
|
+
<navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
|
|
110
|
+
<flattenPackages />
|
|
111
|
+
<showMembers />
|
|
112
|
+
<showModules />
|
|
113
|
+
<showLibraryContents />
|
|
114
|
+
<hideEmptyPackages />
|
|
115
|
+
<abbreviatePackageNames />
|
|
116
|
+
<autoscrollToSource />
|
|
117
|
+
<autoscrollFromSource />
|
|
118
|
+
<sortByType />
|
|
119
|
+
</navigator>
|
|
120
|
+
<panes>
|
|
121
|
+
<pane id="Favorites" />
|
|
122
|
+
<pane id="Scope" />
|
|
123
|
+
<pane id="ProjectPane">
|
|
124
|
+
<subPane>
|
|
125
|
+
<PATH>
|
|
126
|
+
<PATH_ELEMENT>
|
|
127
|
+
<option name="myItemId" value="social-bee" />
|
|
128
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
129
|
+
</PATH_ELEMENT>
|
|
130
|
+
</PATH>
|
|
131
|
+
<PATH>
|
|
132
|
+
<PATH_ELEMENT>
|
|
133
|
+
<option name="myItemId" value="social-bee" />
|
|
134
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
135
|
+
</PATH_ELEMENT>
|
|
136
|
+
<PATH_ELEMENT>
|
|
137
|
+
<option name="myItemId" value="social-bee" />
|
|
138
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
139
|
+
</PATH_ELEMENT>
|
|
140
|
+
</PATH>
|
|
141
|
+
<PATH>
|
|
142
|
+
<PATH_ELEMENT>
|
|
143
|
+
<option name="myItemId" value="social-bee" />
|
|
144
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
145
|
+
</PATH_ELEMENT>
|
|
146
|
+
<PATH_ELEMENT>
|
|
147
|
+
<option name="myItemId" value="social-bee" />
|
|
148
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
149
|
+
</PATH_ELEMENT>
|
|
150
|
+
<PATH_ELEMENT>
|
|
151
|
+
<option name="myItemId" value="lib" />
|
|
152
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
153
|
+
</PATH_ELEMENT>
|
|
154
|
+
</PATH>
|
|
155
|
+
</subPane>
|
|
156
|
+
</pane>
|
|
157
|
+
</panes>
|
|
158
|
+
</component>
|
|
159
|
+
<component name="PropertiesComponent">
|
|
160
|
+
<property name="options.splitter.main.proportions" value="0.3" />
|
|
161
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
162
|
+
<property name="options.lastSelected" value="org.jetbrains.plugins.ruby.settings.RubyIdeSdkConfigurable" />
|
|
163
|
+
<property name="options.splitter.details.proportions" value="0.2" />
|
|
164
|
+
<property name="options.searchVisible" value="true" />
|
|
165
|
+
</component>
|
|
166
|
+
<component name="RunManager">
|
|
167
|
+
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
|
168
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
169
|
+
<module name="" />
|
|
170
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
171
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
|
172
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
173
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
174
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
175
|
+
<envs />
|
|
176
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
177
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
|
|
178
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
179
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
180
|
+
</COVERAGE_PATTERN>
|
|
181
|
+
</EXTENSION>
|
|
182
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
183
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
|
184
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
185
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
186
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
|
187
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
188
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
189
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
190
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
|
191
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
192
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
193
|
+
<method />
|
|
194
|
+
</configuration>
|
|
195
|
+
<configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
|
|
196
|
+
<module name="" />
|
|
197
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
198
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
|
|
199
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
200
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
201
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
|
202
|
+
<envs />
|
|
203
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
204
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
|
|
205
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
206
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
207
|
+
</COVERAGE_PATTERN>
|
|
208
|
+
</EXTENSION>
|
|
209
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
|
|
210
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
|
211
|
+
<method />
|
|
212
|
+
</configuration>
|
|
213
|
+
<configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
|
|
214
|
+
<predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
|
|
215
|
+
<module name="" />
|
|
216
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
217
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
|
218
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
219
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
220
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
221
|
+
<envs>
|
|
222
|
+
<env name="ANSICON" value="" />
|
|
223
|
+
</envs>
|
|
224
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
225
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
|
|
226
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
227
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
228
|
+
</COVERAGE_PATTERN>
|
|
229
|
+
</EXTENSION>
|
|
230
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
|
|
231
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
232
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
233
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
|
234
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
|
|
235
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
|
|
236
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
|
|
237
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
238
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
239
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
|
|
240
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
241
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
|
|
242
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
|
|
243
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
|
|
244
|
+
<method />
|
|
245
|
+
</configuration>
|
|
246
|
+
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda">
|
|
247
|
+
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
|
248
|
+
<module name="" />
|
|
249
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
250
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
|
251
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
252
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
253
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
254
|
+
<envs />
|
|
255
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
256
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
|
|
257
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
258
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
259
|
+
</COVERAGE_PATTERN>
|
|
260
|
+
</EXTENSION>
|
|
261
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
262
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
|
263
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_CLASS_NAME" VALUE="" />
|
|
264
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
|
265
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
|
266
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
267
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="INHERITANCE_CHECK_DISABLED" VALUE="false" />
|
|
268
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
269
|
+
<method />
|
|
270
|
+
</configuration>
|
|
271
|
+
<list size="0" />
|
|
272
|
+
</component>
|
|
273
|
+
<component name="ShelveChangesManager" show_recycled="false" />
|
|
274
|
+
<component name="SvnConfiguration" maxAnnotateRevisions="500">
|
|
275
|
+
<option name="USER" value="" />
|
|
276
|
+
<option name="PASSWORD" value="" />
|
|
277
|
+
<option name="mySSHConnectionTimeout" value="30000" />
|
|
278
|
+
<option name="mySSHReadTimeout" value="30000" />
|
|
279
|
+
<option name="LAST_MERGED_REVISION" />
|
|
280
|
+
<option name="MERGE_DRY_RUN" value="false" />
|
|
281
|
+
<option name="MERGE_DIFF_USE_ANCESTRY" value="true" />
|
|
282
|
+
<option name="UPDATE_LOCK_ON_DEMAND" value="false" />
|
|
283
|
+
<option name="IGNORE_SPACES_IN_MERGE" value="false" />
|
|
284
|
+
<option name="DETECT_NESTED_COPIES" value="true" />
|
|
285
|
+
<option name="CHECK_NESTED_FOR_QUICK_MERGE" value="false" />
|
|
286
|
+
<option name="IGNORE_SPACES_IN_ANNOTATE" value="true" />
|
|
287
|
+
<option name="SHOW_MERGE_SOURCES_IN_ANNOTATE" value="true" />
|
|
288
|
+
<option name="FORCE_UPDATE" value="false" />
|
|
289
|
+
<myIsUseDefaultProxy>false</myIsUseDefaultProxy>
|
|
290
|
+
</component>
|
|
291
|
+
<component name="TaskManager">
|
|
292
|
+
<task active="true" id="Default" summary="Default task">
|
|
293
|
+
<changelist id="9b567d4b-4a32-4942-80d0-6d4c30dd9b8a" name="Default" comment="" />
|
|
294
|
+
<created>1317296741765</created>
|
|
295
|
+
<updated>1317296741765</updated>
|
|
296
|
+
</task>
|
|
297
|
+
<servers />
|
|
298
|
+
</component>
|
|
299
|
+
<component name="ToolWindowManager">
|
|
300
|
+
<frame x="0" y="22" width="1280" height="687" extended-state="0" />
|
|
301
|
+
<editor active="true" />
|
|
302
|
+
<layout>
|
|
303
|
+
<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" />
|
|
304
|
+
<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" />
|
|
305
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32956383" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
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" />
|
|
307
|
+
<window_info id="Dependency Viewer" 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" />
|
|
308
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25" sideWeight="0.6704362" order="0" side_tool="false" content_ui="tabs" />
|
|
309
|
+
<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" />
|
|
310
|
+
<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" />
|
|
311
|
+
<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" />
|
|
312
|
+
<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" />
|
|
313
|
+
<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" />
|
|
314
|
+
<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" />
|
|
315
|
+
<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" />
|
|
316
|
+
<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" />
|
|
317
|
+
<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" />
|
|
318
|
+
</layout>
|
|
319
|
+
</component>
|
|
320
|
+
<component name="VcsManagerConfiguration">
|
|
321
|
+
<option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
|
|
322
|
+
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="true" />
|
|
323
|
+
<option name="CHECK_NEW_TODO" value="true" />
|
|
324
|
+
<option name="myTodoPanelSettings">
|
|
325
|
+
<value>
|
|
326
|
+
<are-packages-shown value="false" />
|
|
327
|
+
<are-modules-shown value="false" />
|
|
328
|
+
<flatten-packages value="false" />
|
|
329
|
+
<is-autoscroll-to-source value="false" />
|
|
330
|
+
</value>
|
|
331
|
+
</option>
|
|
332
|
+
<option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />
|
|
333
|
+
<option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />
|
|
334
|
+
<option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
|
|
335
|
+
<option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
|
|
336
|
+
<option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
|
|
337
|
+
<option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
|
|
338
|
+
<option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
|
|
339
|
+
<option name="ENABLE_BACKGROUND_PROCESSES" value="false" />
|
|
340
|
+
<option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
|
|
341
|
+
<option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
|
|
342
|
+
<option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />
|
|
343
|
+
<option name="DEFAULT_PATCH_EXTENSION" value="patch" />
|
|
344
|
+
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
|
|
345
|
+
<option name="LAST_COMMIT_MESSAGE" />
|
|
346
|
+
<option name="MAKE_NEW_CHANGELIST_ACTIVE" value="true" />
|
|
347
|
+
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
|
|
348
|
+
<option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
|
|
349
|
+
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
|
|
350
|
+
<option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
|
|
351
|
+
<option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
|
|
352
|
+
<option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
|
|
353
|
+
<option name="ACTIVE_VCS_NAME" />
|
|
354
|
+
<option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
|
|
355
|
+
<option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
|
|
356
|
+
<option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
|
|
357
|
+
<option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
|
|
358
|
+
</component>
|
|
359
|
+
<component name="XDebuggerManager">
|
|
360
|
+
<breakpoint-manager />
|
|
361
|
+
</component>
|
|
362
|
+
<component name="editorHistoryManager">
|
|
363
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
|
364
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
365
|
+
<state line="4" column="13" selection-start="69" selection-end="69" vertical-scroll-proportion="0.0">
|
|
366
|
+
<folding />
|
|
367
|
+
</state>
|
|
368
|
+
</provider>
|
|
369
|
+
</entry>
|
|
370
|
+
<entry file="file://$PROJECT_DIR$/lib/social-bee/twi.rb">
|
|
371
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
372
|
+
<state line="17" column="35" selection-start="487" selection-end="487" vertical-scroll-proportion="0.0">
|
|
373
|
+
<folding />
|
|
374
|
+
</state>
|
|
375
|
+
</provider>
|
|
376
|
+
</entry>
|
|
377
|
+
<entry file="file://$PROJECT_DIR$/lib/social-bee/facebook.rb">
|
|
378
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
379
|
+
<state line="6" column="4" selection-start="59" selection-end="293" vertical-scroll-proportion="0.0">
|
|
380
|
+
<folding />
|
|
381
|
+
</state>
|
|
382
|
+
</provider>
|
|
383
|
+
</entry>
|
|
384
|
+
<entry file="file://$PROJECT_DIR$/lib/social-bee/vkontakte.rb">
|
|
385
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
386
|
+
<state line="12" column="74" selection-start="335" selection-end="335" vertical-scroll-proportion="0.0">
|
|
387
|
+
<folding />
|
|
388
|
+
</state>
|
|
389
|
+
</provider>
|
|
390
|
+
</entry>
|
|
391
|
+
<entry file="file://$PROJECT_DIR$/lib/social-bee.rb">
|
|
392
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
393
|
+
<state line="11" column="53" selection-start="179" selection-end="179" vertical-scroll-proportion="0.22335026">
|
|
394
|
+
<folding />
|
|
395
|
+
</state>
|
|
396
|
+
</provider>
|
|
397
|
+
</entry>
|
|
398
|
+
</component>
|
|
399
|
+
</project>
|
|
400
|
+
|
data/Gemfile
CHANGED
data/README
ADDED
|
File without changes
|
data/lib/social-bee.rb
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
require "social-bee/version"
|
|
2
|
+
require 'twitter'
|
|
3
|
+
require 'koala'
|
|
4
|
+
require 'vk-ruby'
|
|
2
5
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
end
|
|
6
|
+
|
|
7
|
+
%w(twi facebook vkontakte).each do |lib|
|
|
8
|
+
require "social-bee/#{lib}"
|
|
7
9
|
end
|
|
10
|
+
|
|
11
|
+
module SocialBee
|
|
12
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
module SocialBee
|
|
2
|
+
|
|
3
|
+
class Facebook
|
|
4
|
+
|
|
5
|
+
include Koala
|
|
6
|
+
|
|
7
|
+
def initialize(p={})
|
|
8
|
+
raise 'Undefined application id' unless @app_id = p[:app_id]
|
|
9
|
+
raise 'Undefined application key' unless @app_key = p[:app_key]
|
|
10
|
+
raise 'Undefined callback url' unless @callback = p[:callback]
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def say_public( message, token )
|
|
14
|
+
|
|
15
|
+
Koala::Facebook::OAuth.class_eval do
|
|
16
|
+
def initialize_with_default_settings(*args)
|
|
17
|
+
case args.size
|
|
18
|
+
when 0, 1
|
|
19
|
+
raise "application id and/or secret are not specified in the config" unless @app_id && @app_key
|
|
20
|
+
initialize_without_default_settings(@app_id.to_s, @app_key.to_s, @callback.to_s)
|
|
21
|
+
when 2, 3
|
|
22
|
+
initialize_without_default_settings(*args)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
alias_method_chain :initialize, :default_settings
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
Koala::Facebook::GraphAPI.new( token ).put_wall_post( message )
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module SocialBee
|
|
2
|
+
|
|
3
|
+
class Twi
|
|
4
|
+
|
|
5
|
+
include Twitter
|
|
6
|
+
|
|
7
|
+
def initialize(p={})
|
|
8
|
+
raise 'Undefined application key' unless @app_key = p[:app_key]
|
|
9
|
+
raise 'Undefined application secret' unless @app_secret = p[:app_secret]
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def say_public( message, token, secret )
|
|
13
|
+
Twitter.configure do |config|
|
|
14
|
+
config.consumer_key = @app_key
|
|
15
|
+
config.consumer_secret = @app_secret
|
|
16
|
+
config.oauth_token = token
|
|
17
|
+
config.oauth_token_secret = secret
|
|
18
|
+
end
|
|
19
|
+
Twitter.update( message )
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
end
|
data/lib/social-bee/version.rb
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module SocialBee
|
|
2
|
+
|
|
3
|
+
class Vkontakte
|
|
4
|
+
|
|
5
|
+
include VK
|
|
6
|
+
|
|
7
|
+
def initialize(p={})
|
|
8
|
+
raise 'Undefined application id' unless @app_id = p[:app_id]
|
|
9
|
+
raise 'Undefined application key' unless @app_key = p[:app_key]
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def say_public( message, token )
|
|
13
|
+
app = VK::Standalone.new :app_id => @app_id, :app_secret => @app_key
|
|
14
|
+
app.access_token = token
|
|
15
|
+
app.wall.post( :message => CGI::escape(message) )
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: social-bee
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2011-
|
|
12
|
+
date: 2011-10-02 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: Easy messaging in Facebook, Twitter, Vkontakte
|
|
15
15
|
email:
|
|
@@ -19,10 +19,22 @@ extensions: []
|
|
|
19
19
|
extra_rdoc_files: []
|
|
20
20
|
files:
|
|
21
21
|
- .gitignore
|
|
22
|
+
- .idea/.name
|
|
23
|
+
- .idea/.rakeTasks
|
|
24
|
+
- .idea/encodings.xml
|
|
25
|
+
- .idea/misc.xml
|
|
26
|
+
- .idea/modules.xml
|
|
27
|
+
- .idea/social-bee.iml
|
|
28
|
+
- .idea/vcs.xml
|
|
29
|
+
- .idea/workspace.xml
|
|
22
30
|
- Gemfile
|
|
31
|
+
- README
|
|
23
32
|
- Rakefile
|
|
24
33
|
- lib/social-bee.rb
|
|
34
|
+
- lib/social-bee/facebook.rb
|
|
35
|
+
- lib/social-bee/twi.rb
|
|
25
36
|
- lib/social-bee/version.rb
|
|
37
|
+
- lib/social-bee/vkontakte.rb
|
|
26
38
|
- social-bee.gemspec
|
|
27
39
|
homepage: http://www.atimofeev.ru
|
|
28
40
|
licenses: []
|