conquer 0.1.0 → 0.1.1
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 +4 -4
- data/lib/conquer/dsl.rb +5 -0
- data/lib/conquer/helpers.rb +4 -0
- data/lib/conquer/segment.rb +2 -0
- data/lib/conquer/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0cf4765d8e3b3654cca97c56fa4689fe19625410
|
4
|
+
data.tar.gz: f23ae868d569a33e37877b459e4c6dcbb0697ca5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a9c43ff8d956af027d6e1c23a3647cb36d54070dd73600cae55e9032d92ed3a9b44d543a5d36a5ab1c761f6c64c60103b5ac6ee54e703d8c0731e57567c9e7f
|
7
|
+
data.tar.gz: 0872e53f714150a0ea14e9e3e2f869cd1e74a4aaaa753d6cac57b8e194847f556dfe497e9e73b9d469676f9ff47e349d016f02cb00fe6efee38fba7d980e520b
|
data/lib/conquer/dsl.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'conquer/segment'
|
2
2
|
require 'conquer/scroller'
|
3
|
+
require 'conquer/helpers'
|
3
4
|
|
4
5
|
module Conquer
|
5
6
|
class DSL
|
@@ -7,6 +8,10 @@ module Conquer
|
|
7
8
|
@container = container
|
8
9
|
end
|
9
10
|
|
11
|
+
def helpers(&block)
|
12
|
+
Helpers.singleton_class.class_eval(&block)
|
13
|
+
end
|
14
|
+
|
10
15
|
def separator(string = ' | ')
|
11
16
|
every(100.hours) { string }
|
12
17
|
end
|
data/lib/conquer/segment.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'celluloid/current'
|
2
2
|
require 'conquer/core_ext/numeric'
|
3
|
+
require 'conquer/helpers'
|
3
4
|
|
4
5
|
module Conquer
|
5
6
|
class Segment
|
@@ -33,6 +34,7 @@ module Conquer
|
|
33
34
|
private
|
34
35
|
|
35
36
|
def wrapped_proc(block)
|
37
|
+
proc { Helpers.instance_eval(&block) }
|
36
38
|
end
|
37
39
|
end
|
38
40
|
|
data/lib/conquer/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conquer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joakim Reinert
|
@@ -90,6 +90,7 @@ files:
|
|
90
90
|
- lib/conquer/container.rb
|
91
91
|
- lib/conquer/core_ext/numeric.rb
|
92
92
|
- lib/conquer/dsl.rb
|
93
|
+
- lib/conquer/helpers.rb
|
93
94
|
- lib/conquer/scroller.rb
|
94
95
|
- lib/conquer/segment.rb
|
95
96
|
- lib/conquer/version.rb
|