skylight 0.6.0.beta.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -8
- data/lib/skylight/probes/sequel.rb +1 -0
- data/lib/skylight/probes/tilt.rb +1 -0
- data/lib/skylight/util/inflector.rb +7 -4
- data/lib/skylight/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0c892a26c674320697cc24a9857b07c5107c779
|
4
|
+
data.tar.gz: abf8ce8600c83d7e060a584c7400fc6b003f50d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b0ec7956fbd75cea0dd11e1c2520ffce737b27dcbaf02cf39ddff9ba6811a6e1daece3ced614b6434bb60c662e8b458a98fc885a0c6f67f2c8a67f7606c89a4
|
7
|
+
data.tar.gz: b2032a3e9549091644ac6bf33616e3e6b3f1f2ffb7adaa320b20ac54dd1fbe9a60759b4059037956c035553c6078b59435927abf5a490f90d9e2ae7b8296304c
|
data/CHANGELOG.md
CHANGED
@@ -1,14 +1,10 @@
|
|
1
|
-
## 0.6.0
|
1
|
+
## 0.6.0 (January 27, 2015)
|
2
2
|
|
3
3
|
* [IMPROVEMENT] Eliminates runtime dependency on the Rails
|
4
4
|
constant across the entire codebase
|
5
|
-
* [FEATURE] Support for Sinatra applications.
|
6
|
-
|
7
|
-
|
8
|
-
* [FEATURE] Support for the Sequel ORM (off by default for Rails apps
|
9
|
-
during the beta)
|
10
|
-
* [FEATURE] Support for Tilt templates (off by default for Rails apps
|
11
|
-
during the beta)
|
5
|
+
* [FEATURE] Support for Sinatra applications. See http://docs.skylight.io/sinatra/
|
6
|
+
* [FEATURE] Support for the Sequel ORM (off by default for Rails apps)
|
7
|
+
* [FEATURE] Support for Tilt templates (off by default for Rails apps)
|
12
8
|
|
13
9
|
## 0.5.2 (December 15, 2014)
|
14
10
|
|
data/lib/skylight/probes/tilt.rb
CHANGED
@@ -89,18 +89,21 @@ module Skylight
|
|
89
89
|
|
90
90
|
# Mount a regular expression that will match part by part of the constant.
|
91
91
|
#
|
92
|
-
# const_regexp("Foo::Bar::Baz") # => /Foo(::Bar(::Baz)?)
|
92
|
+
# const_regexp("Foo::Bar::Baz") # => /(Foo(::Bar(::Baz)?)?|Bar|Baz)/
|
93
93
|
# const_regexp("::") # => /::/
|
94
|
+
#
|
95
|
+
# NOTE: We also add each part in singly, because sometimes a search for a missing
|
96
|
+
# constant like Skylight::Foo::Bar will return an error just saying Foo was missing
|
94
97
|
def const_regexp(camel_cased_word) #:nodoc:
|
95
98
|
parts = camel_cased_word.split("::")
|
96
99
|
|
97
100
|
return Regexp.escape(camel_cased_word) if parts.empty?
|
98
101
|
|
99
|
-
|
100
|
-
|
101
|
-
parts.reverse.inject(last) do |acc, part|
|
102
|
+
regexp = parts.reverse.inject do |acc, part|
|
102
103
|
part.empty? ? acc : "#{part}(::#{acc})?"
|
103
104
|
end
|
105
|
+
|
106
|
+
"(" + ([regexp] + parts[1..-1]).join('|') + ")"
|
104
107
|
end
|
105
108
|
end
|
106
109
|
end
|
data/lib/skylight/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skylight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.0
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tilde, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -167,13 +167,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
167
167
|
version: 1.9.2
|
168
168
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
169
169
|
requirements:
|
170
|
-
- - "
|
170
|
+
- - ">="
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
version:
|
172
|
+
version: '0'
|
173
173
|
requirements: []
|
174
174
|
rubyforge_project:
|
175
|
-
rubygems_version: 2.
|
175
|
+
rubygems_version: 2.4.5
|
176
176
|
signing_key:
|
177
177
|
specification_version: 4
|
178
178
|
summary: Skylight is a smart profiler for Rails apps
|
179
179
|
test_files: []
|
180
|
+
has_rdoc:
|