oculus 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. data/.gitignore +17 -0
  2. data/.travis.yml +7 -0
  3. data/Gemfile +3 -0
  4. data/LICENSE +22 -0
  5. data/README.md +34 -0
  6. data/Rakefile +18 -0
  7. data/TODO.md +12 -0
  8. data/bin/oculus +32 -0
  9. data/features/query.feature +26 -0
  10. data/features/step_definitions/query_steps.rb +35 -0
  11. data/features/support/env.rb +22 -0
  12. data/lib/oculus/connection/mysql2.rb +22 -0
  13. data/lib/oculus/connection.rb +7 -0
  14. data/lib/oculus/presenters/query_presenter.rb +40 -0
  15. data/lib/oculus/presenters.rb +1 -0
  16. data/lib/oculus/query.rb +61 -0
  17. data/lib/oculus/server/public/css/bootstrap.min.css +689 -0
  18. data/lib/oculus/server/public/css/codemirror.css +112 -0
  19. data/lib/oculus/server/public/css/reset.css +47 -0
  20. data/lib/oculus/server/public/css/style.css +107 -0
  21. data/lib/oculus/server/public/img/glyphicons-halflings-white.png +0 -0
  22. data/lib/oculus/server/public/img/glyphicons-halflings.png +0 -0
  23. data/lib/oculus/server/public/js/application.js +160 -0
  24. data/lib/oculus/server/public/js/bootstrap.min.js +6 -0
  25. data/lib/oculus/server/public/js/codemirror.min.js +1 -0
  26. data/lib/oculus/server/public/js/jquery.min.js +4 -0
  27. data/lib/oculus/server/public/js/spin.min.js +2 -0
  28. data/lib/oculus/server/views/history.erb +35 -0
  29. data/lib/oculus/server/views/index.erb +97 -0
  30. data/lib/oculus/server/views/layout.erb +37 -0
  31. data/lib/oculus/server/views/show.erb +59 -0
  32. data/lib/oculus/server.rb +88 -0
  33. data/lib/oculus/storage/file_store.rb +129 -0
  34. data/lib/oculus/storage.rb +7 -0
  35. data/lib/oculus/version.rb +3 -0
  36. data/lib/oculus.rb +29 -0
  37. data/oculus.gemspec +26 -0
  38. data/spec/connection_spec.rb +61 -0
  39. data/spec/file_store_spec.rb +111 -0
  40. data/spec/query_presenter_spec.rb +54 -0
  41. data/spec/query_spec.rb +107 -0
  42. metadata +173 -0
metadata ADDED
@@ -0,0 +1,173 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: oculus
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Paul Rosania
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-05-01 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: sinatra
16
+ requirement: &70342379865700 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 1.3.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70342379865700
25
+ - !ruby/object:Gem::Dependency
26
+ name: mysql2
27
+ requirement: &70342379588240 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: 0.3.11
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70342379588240
36
+ - !ruby/object:Gem::Dependency
37
+ name: vegas
38
+ requirement: &70342379586780 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: 0.1.4
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *70342379586780
47
+ - !ruby/object:Gem::Dependency
48
+ name: rake
49
+ requirement: &70342379585980 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *70342379585980
58
+ - !ruby/object:Gem::Dependency
59
+ name: cucumber
60
+ requirement: &70342379581200 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '1'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *70342379581200
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: &70342379895020 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '2'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: *70342379895020
80
+ - !ruby/object:Gem::Dependency
81
+ name: capybara
82
+ requirement: &70342379894540 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '1'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *70342379894540
91
+ description: Oculus is a web-based logging SQL client. It keeps a history of your
92
+ queries and the results they returned, so your research is always at hand, easy
93
+ to share and easy to repeat or reproduce in the future.
94
+ email:
95
+ - paul.rosania@gmail.com
96
+ executables:
97
+ - oculus
98
+ extensions: []
99
+ extra_rdoc_files: []
100
+ files:
101
+ - .gitignore
102
+ - .travis.yml
103
+ - Gemfile
104
+ - LICENSE
105
+ - README.md
106
+ - Rakefile
107
+ - TODO.md
108
+ - bin/oculus
109
+ - features/query.feature
110
+ - features/step_definitions/query_steps.rb
111
+ - features/support/env.rb
112
+ - lib/oculus.rb
113
+ - lib/oculus/connection.rb
114
+ - lib/oculus/connection/mysql2.rb
115
+ - lib/oculus/presenters.rb
116
+ - lib/oculus/presenters/query_presenter.rb
117
+ - lib/oculus/query.rb
118
+ - lib/oculus/server.rb
119
+ - lib/oculus/server/public/css/bootstrap.min.css
120
+ - lib/oculus/server/public/css/codemirror.css
121
+ - lib/oculus/server/public/css/reset.css
122
+ - lib/oculus/server/public/css/style.css
123
+ - lib/oculus/server/public/img/glyphicons-halflings-white.png
124
+ - lib/oculus/server/public/img/glyphicons-halflings.png
125
+ - lib/oculus/server/public/js/application.js
126
+ - lib/oculus/server/public/js/bootstrap.min.js
127
+ - lib/oculus/server/public/js/codemirror.min.js
128
+ - lib/oculus/server/public/js/jquery.min.js
129
+ - lib/oculus/server/public/js/spin.min.js
130
+ - lib/oculus/server/views/history.erb
131
+ - lib/oculus/server/views/index.erb
132
+ - lib/oculus/server/views/layout.erb
133
+ - lib/oculus/server/views/show.erb
134
+ - lib/oculus/storage.rb
135
+ - lib/oculus/storage/file_store.rb
136
+ - lib/oculus/version.rb
137
+ - oculus.gemspec
138
+ - spec/connection_spec.rb
139
+ - spec/file_store_spec.rb
140
+ - spec/query_presenter_spec.rb
141
+ - spec/query_spec.rb
142
+ homepage: https://github.com/paulrosania/oculus
143
+ licenses: []
144
+ post_install_message:
145
+ rdoc_options: []
146
+ require_paths:
147
+ - lib
148
+ required_ruby_version: !ruby/object:Gem::Requirement
149
+ none: false
150
+ requirements:
151
+ - - ! '>='
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
154
+ required_rubygems_version: !ruby/object:Gem::Requirement
155
+ none: false
156
+ requirements:
157
+ - - ! '>='
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ requirements: []
161
+ rubyforge_project:
162
+ rubygems_version: 1.8.11
163
+ signing_key:
164
+ specification_version: 3
165
+ summary: Oculus is a web-based logging SQL client.
166
+ test_files:
167
+ - features/query.feature
168
+ - features/step_definitions/query_steps.rb
169
+ - features/support/env.rb
170
+ - spec/connection_spec.rb
171
+ - spec/file_store_spec.rb
172
+ - spec/query_presenter_spec.rb
173
+ - spec/query_spec.rb