speed_gun 1.0.0.rc1 → 2.0.0.pre.alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +9 -18
  3. data/.rspec +1 -1
  4. data/.rubocop.yml +61 -1
  5. data/.travis.yml +3 -4
  6. data/LICENSE.txt +17 -18
  7. data/README.md +19 -137
  8. data/Rakefile +9 -0
  9. data/bin/console +14 -0
  10. data/bin/setup +8 -0
  11. data/example/rails/.gitignore +18 -0
  12. data/example/rails/Gemfile +20 -0
  13. data/example/rails/Gemfile.lock +184 -0
  14. data/example/rails/README.rdoc +28 -0
  15. data/example/rails/Rakefile +6 -0
  16. data/example/rails/app/assets/images/.keep +0 -0
  17. data/example/rails/app/assets/javascripts/application.js +15 -0
  18. data/example/rails/app/assets/javascripts/posts.coffee +3 -0
  19. data/example/rails/app/assets/stylesheets/application.css +15 -0
  20. data/example/rails/app/assets/stylesheets/posts.scss +3 -0
  21. data/example/rails/app/assets/stylesheets/scaffolds.scss +73 -0
  22. data/example/rails/app/controllers/application_controller.rb +5 -0
  23. data/example/rails/app/controllers/concerns/.keep +0 -0
  24. data/example/rails/app/controllers/posts_controller.rb +74 -0
  25. data/example/rails/app/helpers/application_helper.rb +2 -0
  26. data/example/rails/app/helpers/posts_helper.rb +2 -0
  27. data/example/rails/app/mailers/.keep +0 -0
  28. data/example/rails/app/models/.keep +0 -0
  29. data/example/rails/app/models/concerns/.keep +0 -0
  30. data/example/rails/app/models/post.rb +2 -0
  31. data/example/rails/app/views/layouts/application.html.erb +14 -0
  32. data/example/rails/app/views/posts/_form.html.erb +25 -0
  33. data/example/rails/app/views/posts/edit.html.erb +6 -0
  34. data/example/rails/app/views/posts/index.html.erb +29 -0
  35. data/example/rails/app/views/posts/index.json.jbuilder +4 -0
  36. data/example/rails/app/views/posts/new.html.erb +5 -0
  37. data/example/rails/app/views/posts/show.html.erb +14 -0
  38. data/example/rails/app/views/posts/show.json.jbuilder +1 -0
  39. data/example/rails/bin/bundle +3 -0
  40. data/example/rails/bin/rails +9 -0
  41. data/example/rails/bin/rake +9 -0
  42. data/example/rails/bin/setup +29 -0
  43. data/example/rails/bin/spring +15 -0
  44. data/example/rails/config/application.rb +26 -0
  45. data/example/rails/config/boot.rb +3 -0
  46. data/example/rails/config/database.yml +25 -0
  47. data/example/rails/config/environment.rb +5 -0
  48. data/example/rails/config/environments/development.rb +41 -0
  49. data/example/rails/config/environments/production.rb +79 -0
  50. data/example/rails/config/environments/test.rb +42 -0
  51. data/example/rails/config/initializers/assets.rb +11 -0
  52. data/example/rails/config/initializers/backtrace_silencers.rb +7 -0
  53. data/example/rails/config/initializers/cookies_serializer.rb +3 -0
  54. data/example/rails/config/initializers/filter_parameter_logging.rb +4 -0
  55. data/example/rails/config/initializers/inflections.rb +16 -0
  56. data/example/rails/config/initializers/mime_types.rb +4 -0
  57. data/example/rails/config/initializers/session_store.rb +3 -0
  58. data/example/rails/config/initializers/wrap_parameters.rb +14 -0
  59. data/example/rails/config/locales/en.yml +23 -0
  60. data/example/rails/config/routes.rb +57 -0
  61. data/example/rails/config/secrets.yml +22 -0
  62. data/example/rails/config.ru +4 -0
  63. data/example/rails/db/migrate/20160619175824_create_posts.rb +10 -0
  64. data/example/rails/db/schema.rb +23 -0
  65. data/example/rails/db/seeds.rb +7 -0
  66. data/example/rails/lib/assets/.keep +0 -0
  67. data/example/rails/lib/tasks/.keep +0 -0
  68. data/example/rails/log/.keep +0 -0
  69. data/example/rails/public/404.html +67 -0
  70. data/example/rails/public/422.html +67 -0
  71. data/example/rails/public/500.html +66 -0
  72. data/example/rails/public/favicon.ico +0 -0
  73. data/example/rails/public/robots.txt +5 -0
  74. data/example/rails/test/controllers/.keep +0 -0
  75. data/example/rails/test/controllers/posts_controller_test.rb +49 -0
  76. data/example/rails/test/fixtures/.keep +0 -0
  77. data/example/rails/test/fixtures/posts.yml +9 -0
  78. data/example/rails/test/helpers/.keep +0 -0
  79. data/example/rails/test/integration/.keep +0 -0
  80. data/example/rails/test/mailers/.keep +0 -0
  81. data/example/rails/test/models/.keep +0 -0
  82. data/example/rails/test/models/post_test.rb +7 -0
  83. data/example/rails/test/test_helper.rb +10 -0
  84. data/example/rails/vendor/assets/javascripts/.keep +0 -0
  85. data/example/rails/vendor/assets/stylesheets/.keep +0 -0
  86. data/lib/rack/speed_gun.rb +100 -0
  87. data/lib/speed_gun/app/public/report.js +58 -0
  88. data/lib/speed_gun/app/views/events.slim +11 -0
  89. data/lib/speed_gun/app/views/payload.slim +20 -0
  90. data/lib/speed_gun/app/views/report.scss +322 -0
  91. data/lib/speed_gun/app/views/report.slim +57 -0
  92. data/lib/speed_gun/app.rb +53 -0
  93. data/lib/speed_gun/config.rb +25 -32
  94. data/lib/speed_gun/event.rb +29 -39
  95. data/lib/speed_gun/profiler/action_controller_profiler.rb +3 -8
  96. data/lib/speed_gun/profiler/action_mailer_profiler.rb +7 -0
  97. data/lib/speed_gun/profiler/action_view_profiler.rb +3 -8
  98. data/lib/speed_gun/profiler/active_job_profiler.rb +6 -0
  99. data/lib/speed_gun/profiler/active_record_profiler.rb +3 -8
  100. data/lib/speed_gun/profiler/active_support_notifications_profiler.rb +9 -6
  101. data/lib/speed_gun/profiler/active_support_profiler.rb +8 -0
  102. data/lib/speed_gun/profiler/line_profiler.rb +32 -0
  103. data/lib/speed_gun/profiler/rack_profiler.rb +2 -4
  104. data/lib/speed_gun/profiler.rb +15 -9
  105. data/lib/speed_gun/railtie.rb +21 -5
  106. data/lib/speed_gun/report.rb +65 -0
  107. data/lib/speed_gun/source.rb +90 -0
  108. data/lib/speed_gun/store/file_store.rb +35 -0
  109. data/lib/speed_gun/store/memory_store.rb +7 -14
  110. data/lib/speed_gun/store.rb +10 -3
  111. data/lib/speed_gun/version.rb +9 -1
  112. data/lib/speed_gun.rb +21 -26
  113. data/speed_gun.gemspec +21 -16
  114. metadata +168 -58
  115. data/.coveralls.yml +0 -1
  116. data/lib/speed_gun/app/views/meter.html.slim +0 -4
  117. data/lib/speed_gun/middleware.rb +0 -91
  118. data/lib/speed_gun/profile.rb +0 -102
  119. data/lib/speed_gun/store/elastic_search_store.rb +0 -64
  120. data/lib/speed_gun/store/fluent_logger_store.rb +0 -29
  121. data/lib/speed_gun/store/memcache_store.rb +0 -40
  122. data/lib/speed_gun/store/multiple_store.rb +0 -23
  123. data/lib/speed_gun/store/redis_store.rb +0 -41
  124. data/lib/speed_gun/template.rb +0 -15
  125. data/spec/lib/speed_gun/config_spec.rb +0 -37
  126. data/spec/lib/speed_gun/event_spec.rb +0 -70
  127. data/spec/lib/speed_gun/middleware_spec.rb +0 -65
  128. data/spec/lib/speed_gun/profile_spec.rb +0 -41
  129. data/spec/lib/speed_gun_spec.rb +0 -52
  130. data/spec/spec_helper.rb +0 -9
  131. data/spec/support/simplecov.rb +0 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a38f7425f4a2a540896f5b7a966cc5585c28de8c
4
- data.tar.gz: 5475d18a057f641dd22f573bded80f1f5ffde58d
3
+ metadata.gz: fbf0bcd59d83f3f6a6d5a0e22bcc9c1bfcf50721
4
+ data.tar.gz: 1cfc3dac79eaa32340dabc49c4f272ea80c734cc
5
5
  SHA512:
6
- metadata.gz: 520937f45fcee60a4f24d187d85ccfc204b0c059dd3604ac0196db7880e5b46cf8fc011da5e26b513560ac62a252543af734e27862c8c64871253e805db72382
7
- data.tar.gz: 24f430cd3d83e1eb25d31db0de0004ae359b1745e8f548cd46ac9d724af9d571ccf26e007dfef870007520c71a173dd0458a499fcba07d7864a97b01f2285a83
6
+ metadata.gz: b87c69db788d81c8ff20f55880cbff62e9ae947de00d2363f7dcd6c967e466745f6123cbcc309b9fdae4041a9b52ed24b474bb4fc9a567e063fe093e6eb891b4
7
+ data.tar.gz: 01e9191f79ee62c35bdf194491cdf58364873f4cb4e969bcd1a364197682e4864b8eb9b2400d510dcb2c9b3107bcd1625d263dad04f71220eda08ccc18f8b640
data/.gitignore CHANGED
@@ -1,18 +1,9 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
18
- .DS_Store
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec CHANGED
@@ -1,2 +1,2 @@
1
+ --format documentation
1
2
  --color
2
- --format progress
data/.rubocop.yml CHANGED
@@ -1,2 +1,62 @@
1
- Documentation:
1
+ AllCops:
2
+ Include:
3
+ - '**/Gemfile'
4
+ - '**/Rakefile'
5
+ - '**/config.ru'
6
+ - '**/*.gemspec'
7
+ Exclude:
8
+ - 'bin/**/*'
9
+ - 'example/**/*'
10
+ - 'vendor/bundle/**/*'
11
+ - 'node_modules/**/*'
12
+ TargetRubyVersion: 2.3
13
+ DisplayCopNames: true
14
+
15
+ Rails:
16
+ Enabled: true
17
+
18
+ Style/Alias:
19
+ EnforcedStyle: prefer_alias_method
20
+
21
+ Style/AlignParameters:
22
+ EnforcedStyle: with_fixed_indentation
23
+
24
+ Style/ClassAndModuleChildren:
25
+ EnforcedStyle: compact
26
+ Exclude:
27
+ - 'config/application.rb'
28
+
29
+ Style/Documentation:
2
30
  Enabled: false
31
+
32
+ Style/EmptyLines:
33
+ Exclude:
34
+ - '**/Gemfile'
35
+
36
+ Style/FrozenStringLiteralComment:
37
+ Exclude:
38
+ - '**/Gemfile'
39
+
40
+ Style/FileName:
41
+ Exclude:
42
+ - '**/Gemfile'
43
+ - '**/Guardfile'
44
+
45
+ Style/RegexpLiteral:
46
+ EnforcedStyle: percent_r
47
+ AllowInnerSlashes: false
48
+
49
+ Metrics/LineLength:
50
+ Max: 240
51
+
52
+ Metrics/MethodLength:
53
+ Exclude:
54
+ - 'db/migrate/*'
55
+ Max: 20
56
+
57
+ Metrics/AbcSize:
58
+ Max: 35
59
+
60
+ Rails/Output:
61
+ Exclude:
62
+ - 'config/unicorn.rb'
data/.travis.yml CHANGED
@@ -1,6 +1,5 @@
1
+ sudo: false
1
2
  language: ruby
2
3
  rvm:
3
- - ruby-head
4
- - 2.1.0
5
- - 2.0.0
6
- - 1.9.3
4
+ - 2.3.1
5
+ before_install: gem install bundler -v 1.12.4
data/LICENSE.txt CHANGED
@@ -1,22 +1,21 @@
1
- Copyright (c) 2013 Sho Kusano
1
+ The MIT License (MIT)
2
2
 
3
- MIT License
3
+ Copyright (c) 2016 Sho Kusano
4
4
 
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
12
11
 
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
15
14
 
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md CHANGED
@@ -1,161 +1,43 @@
1
1
  # SpeedGun
2
2
 
3
- First, profile. Second, profile.
3
+ [![Gem Version](https://badge.fury.io/rb/speed_gun.svg)](http://badge.fury.io/rb/speed_gun)
4
4
 
5
- SpeedGun is a better web app profiler on Rails and Rack apps.
5
+ **Work In Progress**
6
6
 
7
- ## Installation
8
-
9
- Add this line to your application's Gemfile:
10
-
11
- gem 'speed_gun'
12
-
13
- And then execute:
14
-
15
- $ bundle
16
-
17
- Or install it yourself as:
18
-
19
- $ gem install speed_gun
20
-
21
- ## Usage
22
-
23
- ### Rails
24
-
25
- You don't require settings in development.
26
-
27
- In production. You should set `enable_if` and `authorize_proc` configs.
28
-
29
- ### Sinatra
30
-
31
- ```ruby
32
- require 'speed_gun'
33
-
34
- class MyApplication < Sinatra::Base
35
- use SpeedGun::Middleware
36
- end
37
- ```
38
-
39
- ## Profiling
40
-
41
- ### Built-in Profilers
42
-
43
- SpeedGun has built-in profilers.
44
-
45
- - `SpeedGun::Profiler::ActionController`
46
- - `SpeedGun::Profiler::ActionView`
47
- - `SpeedGun::Profiler::ActiveRecord`
48
- - `SpeedGun::Profiler::Rack`
7
+ > I feel the need... the need for speed!
49
8
 
50
- these profilers don't need configuration.
9
+ SpeedGun is a more better performance measurement tool for Rails and Rack applications.
51
10
 
52
- ### Manual Profiling
11
+ ## Installation
53
12
 
54
- If you want take profile manually. You can use `SpeedGun.profile` method.
13
+ Add this line to your application's Gemfile:
55
14
 
56
15
  ```ruby
57
- SpeedGun.profile("MyProfile#method") do
58
- my_profile.method()
59
- end
60
- ```
61
-
62
- ### Javascript Profiling
63
-
64
- SpeedGun is supporting profiling on javascript. You can use `speedGun.profile` or `speedGun.profileMethod`.
65
-
66
- ```javascript
67
- speedGun.profile("any title", function() { ... codes ...});
68
-
69
- var object = { func: function() { ... codes ... } };
70
- speedGun.profileMethod(object, "func", "any title");
16
+ gem 'speed_gun'
71
17
  ```
72
18
 
73
- And SpeedGun collect browser informations.
74
-
75
- - User Agent
76
- - Perfomance API(if implemented)
77
-
78
- ### Custom Profiler
79
-
80
- You can create your custom profilers. a custom profiler require `title` method.
81
-
82
- Some examples:
83
-
84
- #### SimpleCustomProfiler
85
-
86
- ```ruby
87
- class SimpleCustomProfiler < SpeedGun::Profiler::Base
88
- def title
89
- 'simple'
90
- end
91
- end
19
+ And then execute:
92
20
 
93
- SpeedGun.profile(:simple_custom_profiler) { ... }
21
+ ```shell
22
+ $ bundle install
94
23
  ```
95
24
 
96
- #### BeforeFilterProfiler
97
-
98
- ```ruby
99
- class BeforeFilerProfiler < SpeedGun::Profiler::Base
100
- # `hook_method` is a helper of method profiling.
101
- hook_method ApplicationControler, :some_filter
102
- end
103
-
104
- class ApplicationControler
105
- def some_filer
106
- ...
107
- end
108
- end
109
- ```
25
+ ## Usage
110
26
 
111
- #### ForceGCProfiler
27
+ TODO: Write usage instructions here
112
28
 
113
- ```ruby
114
- class ForceGCProfiler < SpeedGun::Profiler::Base
115
- # You can define profiler type name.
116
- def self.type
117
- :force_gc_profiler
118
- end
119
-
120
- # `#before_profile` is called on before profiling.
121
- def before_profile
122
- @before_gc_disable = GC.enable
123
- GC.start
124
- end
125
-
126
- # `#after_profile` is called on after profiling.
127
- def after_profile
128
- GC.disable if @before_gc_disable
129
- end
130
- end
131
-
132
- SpeedGun.profile(:force_gc_profiler) { ... }
133
- ```
29
+ ## Development
134
30
 
135
- ## Store
31
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
136
32
 
137
- SpeedGun store request informations(profiling, environments and browser infos). You can select store engines.
33
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
138
34
 
139
- ### Built-in Stores
35
+ ## Contributing
140
36
 
141
- - `SpeedGun::Store::Memory` (default store engine on rack)
142
- - `max_entries` option: Set number of max profile entries(default: 100)
143
- - `SpeedGun::Store::File` (default store engine on rails)
144
- - `path` option: Set stored path(default: `/tmp/speed_gun` or `Rails.root/tmp/speed_gun`)
145
- - `expires` option: Set expires in seconds(default: 1 day)
146
- - `SpeedGun::Store::Memcache` (before `require 'speed_gun/store/memcache'`)
147
- - `client` option: Set memcache client instance(default: `Dalli::Clinet.new`)
148
- - `prefix` option: Set prefix of your profile key(default: `'speed-gun-'`)
149
- - `expires` option: Set expires in seconds(default: 1 day)
150
- - `SpeedGun::Store::Redis` (before `require 'speed_gun/store/redis'`)
151
- - `client` option: Set redis client instance(default: `Redis.new`)
152
- - `prefix` option: Set prefix of your profile key(default: `'speed-gun-'`)
153
- - `expires` option: Set expires in seconds(default: 1 day)
37
+ Bug reports and pull requests are welcome on GitHub at https://github.com/zeny-io/speed_gun.
154
38
 
155
- ### Custom Store
156
39
 
157
- SpeedGun's store engines requires `[]` and `[]=` methods.
40
+ ## License
158
41
 
159
- ## Contributing
42
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
160
43
 
161
- Please pull-requests :octocat: <http://github.com/rosylilly/speed_gun>
data/Rakefile CHANGED
@@ -1,6 +1,15 @@
1
+ # frozen_string_literal: true
1
2
  require 'bundler/gem_tasks'
2
3
  require 'rspec/core/rake_task'
3
4
 
4
5
  RSpec::Core::RakeTask.new(:spec)
5
6
 
7
+ require 'yard'
8
+ require 'yard/rake/yardoc_task'
9
+ YARD::Rake::YardocTask.new do |t|
10
+ t.files = ['lib/**/*.rb']
11
+ t.options = []
12
+ t.options.push('--debug', '--verbose') if $trace
13
+ end
14
+
6
15
  task default: :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "speed_gun"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,18 @@
1
+ # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
+ #
3
+ # If you find yourself ignoring temporary files generated by your text editor
4
+ # or operating system, you probably want to add a global ignore instead:
5
+ # git config --global core.excludesfile '~/.gitignore_global'
6
+
7
+ # Ignore bundler config.
8
+ .bundle
9
+
10
+ # Ignore the default SQLite database.
11
+ db/*.sqlite3
12
+ db/*.sqlite3-journal
13
+
14
+ # Ignore all logfiles and tempfiles.
15
+ log/*
16
+ !/log/.keep
17
+ tmp
18
+ .sass-cache
@@ -0,0 +1,20 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'rails', '4.2.6'
4
+ gem 'sqlite3'
5
+ gem 'sass-rails', '~> 5.0'
6
+ gem 'uglifier', '>= 1.3.0'
7
+ gem 'coffee-rails', '~> 4.1.0'
8
+ gem 'jquery-rails'
9
+ gem 'jbuilder', '~> 2.0'
10
+
11
+ group :development, :test do
12
+ gem 'byebug'
13
+ end
14
+
15
+ group :development do
16
+ gem 'web-console', '~> 2.0'
17
+ gem 'spring'
18
+
19
+ gem 'speed_gun', path: '../..'
20
+ end
@@ -0,0 +1,184 @@
1
+ PATH
2
+ remote: ../..
3
+ specs:
4
+ speed_gun (2.0.0.pre.alpha.1)
5
+ msgpack
6
+ rack
7
+ rblineprof
8
+ sass
9
+ semantic
10
+ sinatra
11
+ sinatra-partial
12
+ slim
13
+
14
+ GEM
15
+ remote: https://rubygems.org/
16
+ specs:
17
+ actionmailer (4.2.6)
18
+ actionpack (= 4.2.6)
19
+ actionview (= 4.2.6)
20
+ activejob (= 4.2.6)
21
+ mail (~> 2.5, >= 2.5.4)
22
+ rails-dom-testing (~> 1.0, >= 1.0.5)
23
+ actionpack (4.2.6)
24
+ actionview (= 4.2.6)
25
+ activesupport (= 4.2.6)
26
+ rack (~> 1.6)
27
+ rack-test (~> 0.6.2)
28
+ rails-dom-testing (~> 1.0, >= 1.0.5)
29
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
30
+ actionview (4.2.6)
31
+ activesupport (= 4.2.6)
32
+ builder (~> 3.1)
33
+ erubis (~> 2.7.0)
34
+ rails-dom-testing (~> 1.0, >= 1.0.5)
35
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
36
+ activejob (4.2.6)
37
+ activesupport (= 4.2.6)
38
+ globalid (>= 0.3.0)
39
+ activemodel (4.2.6)
40
+ activesupport (= 4.2.6)
41
+ builder (~> 3.1)
42
+ activerecord (4.2.6)
43
+ activemodel (= 4.2.6)
44
+ activesupport (= 4.2.6)
45
+ arel (~> 6.0)
46
+ activesupport (4.2.6)
47
+ i18n (~> 0.7)
48
+ json (~> 1.7, >= 1.7.7)
49
+ minitest (~> 5.1)
50
+ thread_safe (~> 0.3, >= 0.3.4)
51
+ tzinfo (~> 1.1)
52
+ arel (6.0.3)
53
+ binding_of_caller (0.7.2)
54
+ debug_inspector (>= 0.0.1)
55
+ builder (3.2.2)
56
+ byebug (9.0.5)
57
+ coffee-rails (4.1.1)
58
+ coffee-script (>= 2.2.0)
59
+ railties (>= 4.0.0, < 5.1.x)
60
+ coffee-script (2.4.1)
61
+ coffee-script-source
62
+ execjs
63
+ coffee-script-source (1.10.0)
64
+ concurrent-ruby (1.0.2)
65
+ debug_inspector (0.0.2)
66
+ debugger-ruby_core_source (1.3.8)
67
+ erubis (2.7.0)
68
+ execjs (2.7.0)
69
+ globalid (0.3.6)
70
+ activesupport (>= 4.1.0)
71
+ i18n (0.7.0)
72
+ jbuilder (2.5.0)
73
+ activesupport (>= 3.0.0, < 5.1)
74
+ multi_json (~> 1.2)
75
+ jquery-rails (4.1.1)
76
+ rails-dom-testing (>= 1, < 3)
77
+ railties (>= 4.2.0)
78
+ thor (>= 0.14, < 2.0)
79
+ json (1.8.3)
80
+ loofah (2.0.3)
81
+ nokogiri (>= 1.5.9)
82
+ mail (2.6.4)
83
+ mime-types (>= 1.16, < 4)
84
+ mime-types (3.1)
85
+ mime-types-data (~> 3.2015)
86
+ mime-types-data (3.2016.0521)
87
+ mini_portile2 (2.1.0)
88
+ minitest (5.9.0)
89
+ msgpack (0.7.6)
90
+ multi_json (1.12.1)
91
+ nokogiri (1.6.8)
92
+ mini_portile2 (~> 2.1.0)
93
+ pkg-config (~> 1.1.7)
94
+ pkg-config (1.1.7)
95
+ rack (1.6.4)
96
+ rack-protection (1.5.3)
97
+ rack
98
+ rack-test (0.6.3)
99
+ rack (>= 1.0)
100
+ rails (4.2.6)
101
+ actionmailer (= 4.2.6)
102
+ actionpack (= 4.2.6)
103
+ actionview (= 4.2.6)
104
+ activejob (= 4.2.6)
105
+ activemodel (= 4.2.6)
106
+ activerecord (= 4.2.6)
107
+ activesupport (= 4.2.6)
108
+ bundler (>= 1.3.0, < 2.0)
109
+ railties (= 4.2.6)
110
+ sprockets-rails
111
+ rails-deprecated_sanitizer (1.0.3)
112
+ activesupport (>= 4.2.0.alpha)
113
+ rails-dom-testing (1.0.7)
114
+ activesupport (>= 4.2.0.beta, < 5.0)
115
+ nokogiri (~> 1.6.0)
116
+ rails-deprecated_sanitizer (>= 1.0.1)
117
+ rails-html-sanitizer (1.0.3)
118
+ loofah (~> 2.0)
119
+ railties (4.2.6)
120
+ actionpack (= 4.2.6)
121
+ activesupport (= 4.2.6)
122
+ rake (>= 0.8.7)
123
+ thor (>= 0.18.1, < 2.0)
124
+ rake (11.2.2)
125
+ rblineprof (0.3.6)
126
+ debugger-ruby_core_source (~> 1.3)
127
+ sass (3.4.22)
128
+ sass-rails (5.0.4)
129
+ railties (>= 4.0.0, < 5.0)
130
+ sass (~> 3.1)
131
+ sprockets (>= 2.8, < 4.0)
132
+ sprockets-rails (>= 2.0, < 4.0)
133
+ tilt (>= 1.1, < 3)
134
+ semantic (1.4.1)
135
+ sinatra (1.4.7)
136
+ rack (~> 1.5)
137
+ rack-protection (~> 1.4)
138
+ tilt (>= 1.3, < 3)
139
+ sinatra-partial (1.0.0)
140
+ sinatra (~> 1.4)
141
+ slim (3.0.7)
142
+ temple (~> 0.7.6)
143
+ tilt (>= 1.3.3, < 2.1)
144
+ spring (1.7.1)
145
+ sprockets (3.6.1)
146
+ concurrent-ruby (~> 1.0)
147
+ rack (> 1, < 3)
148
+ sprockets-rails (3.0.4)
149
+ actionpack (>= 4.0)
150
+ activesupport (>= 4.0)
151
+ sprockets (>= 3.0.0)
152
+ sqlite3 (1.3.11)
153
+ temple (0.7.7)
154
+ thor (0.19.1)
155
+ thread_safe (0.3.5)
156
+ tilt (2.0.5)
157
+ tzinfo (1.2.2)
158
+ thread_safe (~> 0.1)
159
+ uglifier (3.0.0)
160
+ execjs (>= 0.3.0, < 3)
161
+ web-console (2.3.0)
162
+ activemodel (>= 4.0)
163
+ binding_of_caller (>= 0.7.2)
164
+ railties (>= 4.0)
165
+ sprockets-rails (>= 2.0, < 4.0)
166
+
167
+ PLATFORMS
168
+ ruby
169
+
170
+ DEPENDENCIES
171
+ byebug
172
+ coffee-rails (~> 4.1.0)
173
+ jbuilder (~> 2.0)
174
+ jquery-rails
175
+ rails (= 4.2.6)
176
+ sass-rails (~> 5.0)
177
+ speed_gun!
178
+ spring
179
+ sqlite3
180
+ uglifier (>= 1.3.0)
181
+ web-console (~> 2.0)
182
+
183
+ BUNDLED WITH
184
+ 1.12.4
@@ -0,0 +1,28 @@
1
+ == README
2
+
3
+ This README would normally document whatever steps are necessary to get the
4
+ application up and running.
5
+
6
+ Things you may want to cover:
7
+
8
+ * Ruby version
9
+
10
+ * System dependencies
11
+
12
+ * Configuration
13
+
14
+ * Database creation
15
+
16
+ * Database initialization
17
+
18
+ * How to run the test suite
19
+
20
+ * Services (job queues, cache servers, search engines, etc.)
21
+
22
+ * Deployment instructions
23
+
24
+ * ...
25
+
26
+
27
+ Please feel free to use a different markup language if you do not plan to run
28
+ <tt>rake doc:app</tt>.
@@ -0,0 +1,6 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require File.expand_path('../config/application', __FILE__)
5
+
6
+ Rails.application.load_tasks
File without changes
@@ -0,0 +1,15 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require_tree .
@@ -0,0 +1,3 @@
1
+ # Place all the behaviors and hooks related to the matching controller here.
2
+ # All this logic will automatically be available in application.js.
3
+ # You can use CoffeeScript in this file: http://coffeescript.org/
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any styles
10
+ * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
+ * file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */