rubulex 0.6.5 → 0.7.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: cf8dbc1b09724952fb721f0a7c6ca4866a2c505a
4
- data.tar.gz: a796b809e1f10a132efcb4e70cf055ee7f565b84
3
+ metadata.gz: 07398eca6a705b00474f24a3a0c923c02fea4480
4
+ data.tar.gz: fa6d98029d2cda4bddd4620f1cfc72181debb461
5
5
  SHA512:
6
- metadata.gz: 47e2441c60a0b99081ab04a3401140fd821665fa9599dcaf5ab5b5a584d57c5f238cb362564790859d9a2c746fe1b94face55b9eb186efa4a215a8fd8075dd9a
7
- data.tar.gz: 140501b4dbbcbe6614c5fb163733ddf474714c02d08487c41bf05e4271e8433176c4c239afc98cdde0a8cdede4c689567419f3430cab74142f23a2192e02d932
6
+ metadata.gz: 58a069d5a972b6d436996308236816177da33f98682826de6aa36862d48e0860da3b7a7bf8f6fda185a0412ad25ead760dd258a21c2f15f1c04422d61d426396
7
+ data.tar.gz: f97bf2f44701fa65d885baf0d7fe893d5bacc3ba171dfa985e89b6121e9b046e7c5e8db4260ce6cc23dd4c301da18c7019d5e6b3072536f2bd8db25ccab7cb81
data/.gitignore CHANGED
@@ -4,7 +4,6 @@
4
4
  .bundle
5
5
  .config
6
6
  .yardoc
7
- Gemfile.lock
8
7
  InstalledFiles
9
8
  _yardoc
10
9
  coverage
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://www.rubygems.org"
2
+
3
+ gemspec
@@ -0,0 +1,58 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rubulex (0.6.5)
5
+ sass (~> 3.4.18)
6
+ sinatra (~> 1.4.6)
7
+ sinatra-contrib (~> 1.4.6)
8
+ slim (~> 3.0.6)
9
+
10
+ GEM
11
+ remote: https://www.rubygems.org/
12
+ specs:
13
+ backports (3.6.6)
14
+ diff-lcs (1.2.5)
15
+ multi_json (1.11.2)
16
+ rack (1.6.4)
17
+ rack-protection (1.5.3)
18
+ rack
19
+ rack-test (0.6.3)
20
+ rack (>= 1.0)
21
+ rspec (3.3.0)
22
+ rspec-core (~> 3.3.0)
23
+ rspec-expectations (~> 3.3.0)
24
+ rspec-mocks (~> 3.3.0)
25
+ rspec-core (3.3.2)
26
+ rspec-support (~> 3.3.0)
27
+ rspec-expectations (3.3.1)
28
+ diff-lcs (>= 1.2.0, < 2.0)
29
+ rspec-support (~> 3.3.0)
30
+ rspec-mocks (3.3.2)
31
+ diff-lcs (>= 1.2.0, < 2.0)
32
+ rspec-support (~> 3.3.0)
33
+ rspec-support (3.3.0)
34
+ sass (3.4.18)
35
+ sinatra (1.4.6)
36
+ rack (~> 1.4)
37
+ rack-protection (~> 1.4)
38
+ tilt (>= 1.3, < 3)
39
+ sinatra-contrib (1.4.6)
40
+ backports (>= 2.0)
41
+ multi_json
42
+ rack-protection
43
+ rack-test
44
+ sinatra (~> 1.4.0)
45
+ tilt (>= 1.3, < 3)
46
+ slim (3.0.6)
47
+ temple (~> 0.7.3)
48
+ tilt (>= 1.3.3, < 2.1)
49
+ temple (0.7.6)
50
+ tilt (2.0.1)
51
+
52
+ PLATFORMS
53
+ java
54
+ ruby
55
+
56
+ DEPENDENCIES
57
+ rspec (~> 3.3.0)
58
+ rubulex!
@@ -10,8 +10,10 @@ html
10
10
  body
11
11
  .page
12
12
  header
13
- h1 Rubulex
14
- h2 a Ruby Regular Expression Editor
13
+ h1
14
+ | Rubulex
15
+ small
16
+ | a Ruby Regular Expression Editor
15
17
 
16
18
  section.editor
17
19
  form#editor_form method="post" action="regex/test" accept-charset="UTF-8"
@@ -13,10 +13,14 @@
13
13
  box-shadow: 2px 2px 2px gray
14
14
 
15
15
  h1
16
- font-size: 48pt
16
+ font-size: 42pt
17
17
 
18
- h2
19
- font-size: 16pt
18
+ small
19
+ margin-left: 16pt
20
+ font-size: 16pt
21
+ text-align: center
22
+ vertical-align: middle
23
+ line-height: 42pt
20
24
 
21
25
  dl
22
26
  dd
@@ -68,7 +72,7 @@ html
68
72
 
69
73
  header
70
74
  color: #454545
71
- height: 120px
75
+ height: 80px
72
76
  text-align: center
73
77
  text-shadow: 2px 2px 2px gray
74
78
 
@@ -79,6 +83,7 @@ html
79
83
  background-color: #FEFEFE
80
84
  border: 1px solid #D0D0D0
81
85
  padding: 18px
86
+ font-size: 8pt
82
87
 
83
88
  .regexp_entry
84
89
  padding: 8px
@@ -89,7 +94,9 @@ html
89
94
 
90
95
  span
91
96
  color: gray
97
+ margin-top: -4pt
92
98
  font-size: 24pt
99
+ line-height: 24pt
93
100
  vertical-align: middle
94
101
 
95
102
  .test
File without changes
@@ -17,7 +17,7 @@ module Rubulex
17
17
  end
18
18
 
19
19
  def regex=(regex)
20
- @regex = Regexp.new("#{regex}", @options)
20
+ @regex = Regexp.new(regex, @options)
21
21
  rescue RegexpError => error
22
22
  @regex = //
23
23
  end
@@ -1,3 +1,3 @@
1
1
  module Rubulex
2
- VERSION = "0.6.5"
2
+ VERSION = "0.7.0"
3
3
  end
@@ -3,24 +3,26 @@ lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'rubulex/version'
5
5
 
6
- Gem::Specification.new do |gem|
7
- gem.name = "rubulex"
8
- gem.version = Rubulex::VERSION
9
- gem.authors = ["Oliver Feldt"]
10
- gem.email = ["oliver.feldt@googlemail.com"]
11
- gem.description = "A simple self-hosted Rubular Clone"
12
- gem.summary = "Rubulex is a simple web application for developing/testing Regular Expression"
13
- gem.homepage = "https://github.com/ofeldt/rubulex"
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "rubulex"
8
+ spec.version = Rubulex::VERSION
9
+ spec.authors = ["Oliver Feldt"]
10
+ spec.email = ["oliver.feldt@googlemail.com"]
11
+ spec.description = "A simple self-hosted Rubular Clone"
12
+ spec.summary = "Rubulex is a simple web application for developing/testing Regular Expression"
13
+ spec.homepage = "https://github.com/ofeldt/rubulex"
14
+ spec.license = "MIT"
14
15
 
15
- gem.add_runtime_dependency "sinatra", "~> 1.4.3"
16
- gem.add_runtime_dependency "sinatra-contrib", "~> 1.4.1"
17
- gem.add_runtime_dependency "slim", "~> 2.0.1"
18
- gem.add_runtime_dependency "sass", "~> 3.2.10"
16
+ spec.add_runtime_dependency "sinatra", "~> 1.4.6"
17
+ spec.add_runtime_dependency "sinatra-contrib", "~> 1.4.6"
18
+ spec.add_runtime_dependency "slim", "~> 3.0.6"
19
+ spec.add_runtime_dependency "sass", "~> 3.4.18"
19
20
 
20
- gem.add_development_dependency "rspec", "~> 2.14.1"
21
+ spec.add_development_dependency "rspec", "~> 3.3.0"
21
22
 
22
- gem.files = `git ls-files`.split($/)
23
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
24
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
25
- gem.require_paths = ["lib"]
23
+ spec.files = `git ls-files`.split($/)
24
+ spec.bindir = "exe"
25
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
27
+ spec.require_paths = ["lib"]
26
28
  end
metadata CHANGED
@@ -1,85 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubulex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Feldt
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2013-09-23 00:00:00.000000000 Z
11
+ date: 2015-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.4.3
19
+ version: 1.4.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.4.3
26
+ version: 1.4.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sinatra-contrib
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.4.1
33
+ version: 1.4.6
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.4.1
40
+ version: 1.4.6
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: slim
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 2.0.1
47
+ version: 3.0.6
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 2.0.1
54
+ version: 3.0.6
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sass
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 3.2.10
61
+ version: 3.4.18
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 3.2.10
68
+ version: 3.4.18
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 2.14.1
75
+ version: 3.3.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 2.14.1
82
+ version: 3.3.0
83
83
  description: A simple self-hosted Rubular Clone
84
84
  email:
85
85
  - oliver.feldt@googlemail.com
@@ -88,22 +88,25 @@ executables:
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
- - .gitignore
91
+ - ".gitignore"
92
+ - Gemfile
93
+ - Gemfile.lock
92
94
  - LICENSE.txt
93
95
  - README.md
94
96
  - Rakefile
95
- - bin/rubulex
96
97
  - config.ru
97
98
  - data/rubulex/public/javascripts/rubulex.js
98
99
  - data/rubulex/views/index.slim
99
100
  - data/rubulex/views/stylesheets/default.sass
101
+ - exe/rubulex
100
102
  - lib/rubulex.rb
101
103
  - lib/rubulex/app.rb
102
104
  - lib/rubulex/regexp_parser.rb
103
105
  - lib/rubulex/version.rb
104
106
  - rubulex.gemspec
105
107
  homepage: https://github.com/ofeldt/rubulex
106
- licenses: []
108
+ licenses:
109
+ - MIT
107
110
  metadata: {}
108
111
  post_install_message:
109
112
  rdoc_options: []
@@ -111,18 +114,19 @@ require_paths:
111
114
  - lib
112
115
  required_ruby_version: !ruby/object:Gem::Requirement
113
116
  requirements:
114
- - - '>='
117
+ - - ">="
115
118
  - !ruby/object:Gem::Version
116
119
  version: '0'
117
120
  required_rubygems_version: !ruby/object:Gem::Requirement
118
121
  requirements:
119
- - - '>='
122
+ - - ">="
120
123
  - !ruby/object:Gem::Version
121
124
  version: '0'
122
125
  requirements: []
123
126
  rubyforge_project:
124
- rubygems_version: 2.0.3
127
+ rubygems_version: 2.4.6
125
128
  signing_key:
126
129
  specification_version: 4
127
130
  summary: Rubulex is a simple web application for developing/testing Regular Expression
128
131
  test_files: []
132
+ has_rdoc: