vector_salad 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36365ab1601003f5226f021411bd78d24081c655
4
- data.tar.gz: 61631d4a045f0ffc04766f1bbdfd8b39ae5839e4
3
+ metadata.gz: 216973fb4df052f0d6dfc3364d476dd152972173
4
+ data.tar.gz: f487f8434831e25b350f6b5598bf1c3a3e70255c
5
5
  SHA512:
6
- metadata.gz: acf0680a776d6368dd4f3c7066a4063caa02672f0b5eb409c000842e8cc0512f30d3d8f1d19f482c7913062fbb70703b72f19108ecc6cc65f003fd6f5b36d048
7
- data.tar.gz: 262ef09b7e2ef36445a8ec60f614c9448b1aac9abaa609e46d2d7af96443c34d8c2b76edca62067e9e6d5a6b4116fcbe1d261ad94b5e7f5e902c9069dc4332d3
6
+ metadata.gz: 027efabf9e99231c12b27de22911e2b6960d569aa0a629f3cdcf6aee293285dc251367b1d755712c3cd5ed08deae5ca4979a92e73b571ffcfafc1ad468963fcc
7
+ data.tar.gz: 4117dcb33a38f58a65e761351be35cf5a61c82e90c25daea9c68a6e9515ef285d55d55e19b251c105c3625aa13b24e59cfbcf70e5c2095d178ca2899a722b9ef
data/.yardopts ADDED
@@ -0,0 +1,5 @@
1
+ --plugin contracts
2
+ --title 'VectorSalad Documentation'
3
+ --charset utf-8
4
+ --markup markdown
5
+ 'lib/**/*.rb' - '*.md'
data/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # VectorSalad
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/vector_salad.svg)](http://badge.fury.io/rb/vector_salad)
4
+ [![Inline docs](http://inch-ci.org/github/sfcgeorge/vector_salad.svg?branch=master)](http://inch-ci.org/github/sfcgeorge/vector_salad)
5
+ [![Code Climate](https://codeclimate.com/github/sfcgeorge/vector_salad/badges/gpa.svg)](https://codeclimate.com/github/sfcgeorge/vector_salad)
6
+
3
7
  ![Space---created with VectorSalad](examples/space.png)
4
8
 
5
9
  Create art and practical design such as the space scene above with descriptive Ruby code!
@@ -44,16 +48,17 @@ Now you'll need a design document to compile and render. Here's a very simple ex
44
48
 
45
49
  ```ruby
46
50
  rect(390, 200, fill: "beige") # background
51
+
47
52
  (1..5).each do |n| # repeat 5 times
48
53
  # make a star from the union of two triangles
49
54
  union(fill: "gold", stroke_width: 3, stroke: "black") do
50
55
  triangle(25)
51
- triangle(25).flip(:x)
56
+ triangle(25).flip_x
52
57
  end.move(n * 65, 100) # move stars at intervals horizontally
53
58
  end
54
59
  ```
55
60
 
56
- Save this document as gold_stars.rb, then it can be converted to SVG with the following command:
61
+ Save this document as `gold_stars.rb`, then it can be converted to SVG with the following command:
57
62
 
58
63
  ```
59
64
  vector_salad -f path/to/gold_stars.rb
@@ -79,10 +84,12 @@ If you leave `fresh_vector_salad` running, try changing the design file, e.g. ma
79
84
 
80
85
  Further information on the usage of these command line tools can be found by running them with the `--help` flag. Further examples can be found in the examples folder.
81
86
 
87
+ See the full [Documentation](http://www.rubydoc.info/github/sfcgeorge/vector_salad) for more usage info.
88
+
82
89
 
83
90
  ## Contributing
84
91
 
85
- 1. Fork it ( https://github.com/[my-github-username]/vector_salad/fork )
92
+ 1. Fork it ( https://github.com/sfcgeorge/vector_salad/fork )
86
93
  2. Create your feature branch (`git checkout -b my-new-feature`)
87
94
  3. Commit your changes (`git commit -am 'Add some feature'`)
88
95
  4. Push to the branch (`git push origin my-new-feature`)
@@ -16,7 +16,6 @@ module VectorSalad
16
16
  # @param max The maximum offset
17
17
  # @param min The minimum offset (default 0)
18
18
  # @param fn The quantization number of sides
19
- Contract Num, { min: Maybe[Num], fn: Maybe[Fixnum] } => Path
20
19
  Contract Num, { min: Maybe[Num],
21
20
  fn: Maybe[Fixnum],
22
21
  canvas: VectorSalad::Canvas
@@ -1,3 +1,3 @@
1
1
  module VectorSalad
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vector_salad
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon George
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-09 00:00:00.000000000 Z
11
+ date: 2015-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pretty_backtrace
@@ -107,6 +107,7 @@ extensions: []
107
107
  extra_rdoc_files: []
108
108
  files:
109
109
  - ".gitignore"
110
+ - ".yardopts"
110
111
  - Gemfile
111
112
  - LICENSE.txt
112
113
  - README.md
@@ -260,3 +261,4 @@ signing_key:
260
261
  specification_version: 4
261
262
  summary: An Intuitive Tool for Creating Art and Practical Design with Code
262
263
  test_files: []
264
+ has_rdoc: