skylight 0.6.0.beta.1 → 0.6.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5fe0175d64d6a4fa8ee48ee5fb11f7c12229419
4
- data.tar.gz: 57bc045e5555aae042471c7920854ac1c022fcfa
3
+ metadata.gz: a0c892a26c674320697cc24a9857b07c5107c779
4
+ data.tar.gz: abf8ce8600c83d7e060a584c7400fc6b003f50d7
5
5
  SHA512:
6
- metadata.gz: a1f45b52db2a62340ab610b4fa5658032105212950cf8bf8a40fad751930b7b4d63690b799b5fd88af959674017ce08e9fe03b017007e76c187ee6393edaa49e
7
- data.tar.gz: 172582d67e1c2ad1420f02a63b32874feee80eb19cacfd7565509de8aa5df9437daa7543096cac8b0ffcad846660e2573d025958850aaebf5007bea7c47bb54e
6
+ metadata.gz: 6b0ec7956fbd75cea0dd11e1c2520ffce737b27dcbaf02cf39ddff9ba6811a6e1daece3ced614b6434bb60c662e8b458a98fc885a0c6f67f2c8a67f7606c89a4
7
+ data.tar.gz: b2032a3e9549091644ac6bf33616e3e6b3f1f2ffb7adaa320b20ac54dd1fbe9a60759b4059037956c035553c6078b59435927abf5a490f90d9e2ae7b8296304c
@@ -1,14 +1,10 @@
1
- ## 0.6.0 - Beta 1 (January 5, 2014)
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. During the
6
- beta period, this requires an opt-in via
7
- `require "skylight/sinatra". See http://docs.skylight.io/sinatra/
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
 
@@ -1,3 +1,4 @@
1
+ # Supports 3.12.0+
1
2
  module Skylight
2
3
  module Probes
3
4
  module Sequel
@@ -1,3 +1,4 @@
1
+ # Supports 0.2+, though Sinatra doesn't support 2.0, and Rails doesn't work with older versions
1
2
  module Skylight
2
3
  module Probes
3
4
  module Tilt
@@ -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
- last = parts.pop
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
@@ -1,4 +1,4 @@
1
1
  module Skylight
2
- VERSION = '0.6.0-beta.1'
2
+ VERSION = '0.6.0'
3
3
  end
4
4
 
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.beta.1
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-05 00:00:00.000000000 Z
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: 1.3.1
172
+ version: '0'
173
173
  requirements: []
174
174
  rubyforge_project:
175
- rubygems_version: 2.2.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: