joseph 0.1.0 → 0.5.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 +7 -0
- data/.gitignore +97 -2
- data/.gitlab-ci.yml +21 -0
- data/.ruby-version +1 -0
- data/Gemfile +2 -2
- data/{MIT-LICENSE → LICENSE.txt} +3 -1
- data/README.md +33 -7
- data/Rakefile +4 -21
- data/examples/fiducials.rb +31 -0
- data/examples/panelize.rb +36 -0
- data/joseph.gemspec +25 -18
- data/lib/core_extensions/float/conversions.rb +13 -0
- data/lib/core_extensions/integer/conversions.rb +9 -0
- data/lib/joseph.rb +25 -29
- data/lib/joseph/aperture.rb +12 -0
- data/lib/joseph/bridge.rb +45 -0
- data/lib/joseph/cirseg.rb +11 -0
- data/lib/joseph/file_info.rb +17 -0
- data/lib/joseph/gdk_color.rb +35 -0
- data/lib/joseph/image.rb +143 -0
- data/lib/joseph/image_info.rb +25 -0
- data/lib/joseph/knockout.rb +13 -0
- data/lib/joseph/layer.rb +11 -0
- data/lib/joseph/net.rb +38 -0
- data/lib/joseph/project.rb +87 -0
- data/lib/joseph/render_info.rb +11 -0
- data/lib/joseph/render_size.rb +50 -0
- data/lib/joseph/step_and_repeat.rb +9 -0
- data/lib/joseph/user_transformation.rb +18 -0
- data/lib/joseph/version.rb +1 -1
- data/spec/assets/3_hat.boardoutline.ger +1628 -0
- data/spec/assets/3_hat.bottomlayer.ger +2038 -0
- data/spec/assets/3_hat.toplayer.ger +3103 -0
- data/spec/assets/test.EXTREP +20 -0
- data/spec/assets/test_wrong.GBL +20 -0
- data/spec/assets/vesc-capbank.topsilkscreen.ger +520 -0
- data/spec/bridge_spec.rb +10 -0
- data/spec/image_spec.rb +75 -0
- data/spec/project_spec.rb +48 -0
- data/spec/render_size_spec.rb +25 -0
- data/spec/results/bottomlayer_mirrored.png +0 -0
- data/spec/results/toplayer_as_png.png +0 -0
- data/spec/spec_helper.rb +16 -0
- metadata +172 -79
- data/Gemfile.lock +0 -26
- data/example.rb +0 -32
- data/spec/joseph_spec.rb +0 -32
data/Gemfile.lock
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
joseph (0.1.0)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: http://rubygems.org/
|
8
|
-
specs:
|
9
|
-
diff-lcs (1.1.2)
|
10
|
-
rake (0.8.7)
|
11
|
-
rspec (2.1.0)
|
12
|
-
rspec-core (~> 2.1.0)
|
13
|
-
rspec-expectations (~> 2.1.0)
|
14
|
-
rspec-mocks (~> 2.1.0)
|
15
|
-
rspec-core (2.1.0)
|
16
|
-
rspec-expectations (2.1.0)
|
17
|
-
diff-lcs (~> 1.1.2)
|
18
|
-
rspec-mocks (2.1.0)
|
19
|
-
|
20
|
-
PLATFORMS
|
21
|
-
ruby
|
22
|
-
|
23
|
-
DEPENDENCIES
|
24
|
-
joseph!
|
25
|
-
rake (~> 0.8.7)
|
26
|
-
rspec (~> 2.1.0)
|
data/example.rb
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
$: << 'lib'
|
2
|
-
require 'joseph'
|
3
|
-
|
4
|
-
module Paypal2K
|
5
|
-
include Joseph
|
6
|
-
end
|
7
|
-
|
8
|
-
Paypal2K.configure do |config|
|
9
|
-
config.username = 'martin@letsannotate.com'
|
10
|
-
config.password = 'secret'
|
11
|
-
end
|
12
|
-
|
13
|
-
puts Paypal2K.username # => 'asd'
|
14
|
-
|
15
|
-
|
16
|
-
class TwitterAuth
|
17
|
-
include Joseph
|
18
|
-
end
|
19
|
-
|
20
|
-
t1 = TwitterAuth.new
|
21
|
-
t1.configure do |config|
|
22
|
-
config.oauth_secret = 'asd'
|
23
|
-
end
|
24
|
-
|
25
|
-
t2 = TwitterAuth.new
|
26
|
-
t2.configure do |config|
|
27
|
-
config.oauth_secret = 'qwe'
|
28
|
-
end
|
29
|
-
|
30
|
-
puts t1.oauth_secret # => 'asd'
|
31
|
-
puts t2.oauth_secret # => 'qwe'
|
32
|
-
|
data/spec/joseph_spec.rb
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
require 'joseph'
|
2
|
-
|
3
|
-
describe Joseph do
|
4
|
-
describe 'adding it to a class' do
|
5
|
-
class A
|
6
|
-
include Joseph
|
7
|
-
end
|
8
|
-
|
9
|
-
let(:a) { A.new }
|
10
|
-
|
11
|
-
it 'includes Joseph' do
|
12
|
-
a.configure do |config|
|
13
|
-
config.hans = 'herbert'
|
14
|
-
end
|
15
|
-
a.hans.should == 'herbert'
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
describe 'adding it to a module' do
|
20
|
-
module M
|
21
|
-
include Joseph
|
22
|
-
end
|
23
|
-
|
24
|
-
it 'includes Joseph' do
|
25
|
-
M.configure do |config|
|
26
|
-
config.hans = 'herbert'
|
27
|
-
end
|
28
|
-
M.hans.should == 'herbert'
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
end
|