stocktwits 1.0.0
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/.document +5 -0
- data/.gitignore +21 -0
- data/LICENSE +20 -0
- data/README +0 -0
- data/README.rdoc +17 -0
- data/Rakefile +63 -0
- data/VERSION +1 -0
- data/app/controllers/sessions_controller.rb +68 -0
- data/app/models/stocktwits/basic_user.rb +64 -0
- data/app/models/stocktwits/generic_user.rb +123 -0
- data/app/models/stocktwits/oauth_user.rb +46 -0
- data/app/models/stocktwits/plain_user.rb +53 -0
- data/app/views/sessions/_login.html.erb +18 -0
- data/app/views/sessions/new.html.erb +5 -0
- data/config/routes.rb +6 -0
- data/generators/stocktwits/USAGE +12 -0
- data/generators/stocktwits/stocktwits_generator.rb +42 -0
- data/generators/stocktwits/templates/migration.rb +20 -0
- data/generators/stocktwits/templates/stocktwits.yml +66 -0
- data/generators/stocktwits/templates/user.rb +5 -0
- data/lib/stocktwits.rb +103 -0
- data/lib/stocktwits/controller_extensions.rb +72 -0
- data/lib/stocktwits/cryptify.rb +30 -0
- data/lib/stocktwits/dispatcher/basic.rb +46 -0
- data/lib/stocktwits/dispatcher/oauth.rb +26 -0
- data/lib/stocktwits/dispatcher/plain.rb +44 -0
- data/lib/stocktwits/dispatcher/shared.rb +42 -0
- data/rails/init.rb +6 -0
- data/spec/application.rb +1 -0
- data/spec/controllers/controller_extensions_spec.rb +162 -0
- data/spec/controllers/sessions_controller_spec.rb +221 -0
- data/spec/debug.log +397 -0
- data/spec/fixtures/config/twitter_auth.yml +17 -0
- data/spec/fixtures/factories.rb +28 -0
- data/spec/fixtures/fakeweb.rb +18 -0
- data/spec/fixtures/stocktwits.rb +5 -0
- data/spec/models/stocktwits/basic_user_spec.rb +138 -0
- data/spec/models/stocktwits/generic_user_spec.rb +146 -0
- data/spec/models/stocktwits/oauth_user_spec.rb +100 -0
- data/spec/schema.rb +25 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +107 -0
- data/spec/stocktwits/cryptify_spec.rb +51 -0
- data/spec/stocktwits/dispatcher/basic_spec.rb +83 -0
- data/spec/stocktwits/dispatcher/oauth_spec.rb +72 -0
- data/spec/stocktwits/dispatcher/shared_spec.rb +26 -0
- data/spec/stocktwits_spec.rb +173 -0
- data/stocktwits.gemspec +116 -0
- metadata +158 -0
metadata
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: stocktwits
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Elad Meidar
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
|
|
12
|
+
date: 2010-03-20 00:00:00 -04:00
|
|
13
|
+
default_executable:
|
|
14
|
+
dependencies:
|
|
15
|
+
- !ruby/object:Gem::Dependency
|
|
16
|
+
name: thoughtbot-shoulda
|
|
17
|
+
type: :development
|
|
18
|
+
version_requirement:
|
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
20
|
+
requirements:
|
|
21
|
+
- - ">="
|
|
22
|
+
- !ruby/object:Gem::Version
|
|
23
|
+
version: "0"
|
|
24
|
+
version:
|
|
25
|
+
- !ruby/object:Gem::Dependency
|
|
26
|
+
name: ezcrypto
|
|
27
|
+
type: :runtime
|
|
28
|
+
version_requirement:
|
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: "0"
|
|
34
|
+
version:
|
|
35
|
+
- !ruby/object:Gem::Dependency
|
|
36
|
+
name: oauth
|
|
37
|
+
type: :runtime
|
|
38
|
+
version_requirement:
|
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
40
|
+
requirements:
|
|
41
|
+
- - ">="
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: "0"
|
|
44
|
+
version:
|
|
45
|
+
- !ruby/object:Gem::Dependency
|
|
46
|
+
name: json
|
|
47
|
+
type: :runtime
|
|
48
|
+
version_requirement:
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - ">="
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: "0"
|
|
54
|
+
version:
|
|
55
|
+
description: " Provide an OAuth, Basic HTTP authentication and plain interfaces to the StockTwits API."
|
|
56
|
+
email: elad@eizesus.com
|
|
57
|
+
executables: []
|
|
58
|
+
|
|
59
|
+
extensions: []
|
|
60
|
+
|
|
61
|
+
extra_rdoc_files:
|
|
62
|
+
- LICENSE
|
|
63
|
+
- README
|
|
64
|
+
- README.rdoc
|
|
65
|
+
files:
|
|
66
|
+
- .document
|
|
67
|
+
- .gitignore
|
|
68
|
+
- LICENSE
|
|
69
|
+
- README
|
|
70
|
+
- README.rdoc
|
|
71
|
+
- Rakefile
|
|
72
|
+
- VERSION
|
|
73
|
+
- app/controllers/sessions_controller.rb
|
|
74
|
+
- app/models/stocktwits/basic_user.rb
|
|
75
|
+
- app/models/stocktwits/generic_user.rb
|
|
76
|
+
- app/models/stocktwits/oauth_user.rb
|
|
77
|
+
- app/models/stocktwits/plain_user.rb
|
|
78
|
+
- app/views/sessions/_login.html.erb
|
|
79
|
+
- app/views/sessions/new.html.erb
|
|
80
|
+
- config/routes.rb
|
|
81
|
+
- generators/stocktwits/USAGE
|
|
82
|
+
- generators/stocktwits/stocktwits_generator.rb
|
|
83
|
+
- generators/stocktwits/templates/migration.rb
|
|
84
|
+
- generators/stocktwits/templates/stocktwits.yml
|
|
85
|
+
- generators/stocktwits/templates/user.rb
|
|
86
|
+
- lib/stocktwits.rb
|
|
87
|
+
- lib/stocktwits/controller_extensions.rb
|
|
88
|
+
- lib/stocktwits/cryptify.rb
|
|
89
|
+
- lib/stocktwits/dispatcher/basic.rb
|
|
90
|
+
- lib/stocktwits/dispatcher/oauth.rb
|
|
91
|
+
- lib/stocktwits/dispatcher/plain.rb
|
|
92
|
+
- lib/stocktwits/dispatcher/shared.rb
|
|
93
|
+
- rails/init.rb
|
|
94
|
+
- spec/application.rb
|
|
95
|
+
- spec/controllers/controller_extensions_spec.rb
|
|
96
|
+
- spec/controllers/sessions_controller_spec.rb
|
|
97
|
+
- spec/debug.log
|
|
98
|
+
- spec/fixtures/config/twitter_auth.yml
|
|
99
|
+
- spec/fixtures/factories.rb
|
|
100
|
+
- spec/fixtures/fakeweb.rb
|
|
101
|
+
- spec/fixtures/stocktwits.rb
|
|
102
|
+
- spec/models/stocktwits/basic_user_spec.rb
|
|
103
|
+
- spec/models/stocktwits/generic_user_spec.rb
|
|
104
|
+
- spec/models/stocktwits/oauth_user_spec.rb
|
|
105
|
+
- spec/schema.rb
|
|
106
|
+
- spec/spec.opts
|
|
107
|
+
- spec/spec_helper.rb
|
|
108
|
+
- spec/stocktwits/cryptify_spec.rb
|
|
109
|
+
- spec/stocktwits/dispatcher/basic_spec.rb
|
|
110
|
+
- spec/stocktwits/dispatcher/oauth_spec.rb
|
|
111
|
+
- spec/stocktwits/dispatcher/shared_spec.rb
|
|
112
|
+
- spec/stocktwits_spec.rb
|
|
113
|
+
- stocktwits.gemspec
|
|
114
|
+
has_rdoc: true
|
|
115
|
+
homepage: http://github.com/eladmeidar/stocktwits
|
|
116
|
+
licenses: []
|
|
117
|
+
|
|
118
|
+
post_install_message:
|
|
119
|
+
rdoc_options:
|
|
120
|
+
- --charset=UTF-8
|
|
121
|
+
require_paths:
|
|
122
|
+
- lib
|
|
123
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
124
|
+
requirements:
|
|
125
|
+
- - ">="
|
|
126
|
+
- !ruby/object:Gem::Version
|
|
127
|
+
version: "0"
|
|
128
|
+
version:
|
|
129
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
|
+
requirements:
|
|
131
|
+
- - ">="
|
|
132
|
+
- !ruby/object:Gem::Version
|
|
133
|
+
version: "0"
|
|
134
|
+
version:
|
|
135
|
+
requirements: []
|
|
136
|
+
|
|
137
|
+
rubyforge_project:
|
|
138
|
+
rubygems_version: 1.3.5
|
|
139
|
+
signing_key:
|
|
140
|
+
specification_version: 3
|
|
141
|
+
summary: Stocktwits.com API wrapper
|
|
142
|
+
test_files:
|
|
143
|
+
- spec/application.rb
|
|
144
|
+
- spec/controllers/controller_extensions_spec.rb
|
|
145
|
+
- spec/controllers/sessions_controller_spec.rb
|
|
146
|
+
- spec/fixtures/factories.rb
|
|
147
|
+
- spec/fixtures/fakeweb.rb
|
|
148
|
+
- spec/fixtures/stocktwits.rb
|
|
149
|
+
- spec/models/stocktwits/basic_user_spec.rb
|
|
150
|
+
- spec/models/stocktwits/generic_user_spec.rb
|
|
151
|
+
- spec/models/stocktwits/oauth_user_spec.rb
|
|
152
|
+
- spec/schema.rb
|
|
153
|
+
- spec/spec_helper.rb
|
|
154
|
+
- spec/stocktwits/cryptify_spec.rb
|
|
155
|
+
- spec/stocktwits/dispatcher/basic_spec.rb
|
|
156
|
+
- spec/stocktwits/dispatcher/oauth_spec.rb
|
|
157
|
+
- spec/stocktwits/dispatcher/shared_spec.rb
|
|
158
|
+
- spec/stocktwits_spec.rb
|