cem 0.1.2 → 0.1.3
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/README.md +6 -18
- data/lib/cem/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 014d136cae33adc2f8715b45c280fb55f11242f7c70940d040bce1e545b97e7b
|
4
|
+
data.tar.gz: fbbd2a832bbf96fa5f18c48557b4f081902657faeb57106e6a5227d73f409952
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3a7fa8ba025117c5035abe10a58004d03d3db9741cd1b1c10d22d976112b7c94ad9e0807d0bf930d411768060ac8eb6c5a34718125fac8be1eb3c2dc5103ea3
|
7
|
+
data.tar.gz: 2ac9b662fe5ef2aaf459d5c93dd7a5da5cbecb23260ae21bc201b75a294ec0defe121cbf39ccd9978af2595c9c116e756aac6edf68be64e4986923474ba9652a
|
data/README.md
CHANGED
@@ -4,18 +4,6 @@ This gem is an assorted collection of common helpers that I use in a lot of proj
|
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
Add this line to your application's Gemfile:
|
8
|
-
|
9
|
-
```ruby
|
10
|
-
gem 'cem'
|
11
|
-
```
|
12
|
-
|
13
|
-
And then execute:
|
14
|
-
|
15
|
-
$ bundle
|
16
|
-
|
17
|
-
Or install it yourself as:
|
18
|
-
|
19
7
|
$ gem install cem
|
20
8
|
|
21
9
|
## Usage
|
@@ -26,19 +14,19 @@ Key things includes:
|
|
26
14
|
|
27
15
|
### crequire
|
28
16
|
|
29
|
-
crequire is a replacement for require for situations where bundler would be overkill. It solves the frustration of having to manually install gems to run a particular ruby script which requires other gems.
|
17
|
+
`crequire` is a replacement for `require` for situations where bundler would be overkill. It solves the frustration of having to manually install gems to run a particular ruby script which requires other gems.
|
30
18
|
|
31
|
-
For example when you want to require
|
19
|
+
For example when you want to require `qml` from the `ruby-qml` gem, use the following line:
|
32
20
|
|
33
21
|
```
|
34
22
|
crequire 'qml', 'ruby-qml'
|
35
23
|
```
|
36
24
|
|
37
|
-
This will attempt to require qml and if it can't be found in the local RubyGems, then it will try to `gem install ruby-qml`
|
25
|
+
This will attempt to require `qml` and if it can't be found in the local RubyGems, then it will try to `gem install ruby-qml`
|
38
26
|
|
39
27
|
### Array::with_progress
|
40
28
|
|
41
|
-
Monkey patches
|
29
|
+
Monkey patches `Array` to return an enumeration which prints progress while lazy evaluating the enumeration.
|
42
30
|
|
43
31
|
```
|
44
32
|
require 'cem'
|
@@ -59,7 +47,7 @@ Defines integer based `Point2D`, `Seg2D` (line segment), `Dir2D` (relative direc
|
|
59
47
|
|
60
48
|
## Development
|
61
49
|
|
62
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `
|
50
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rspec` to run the tests.
|
63
51
|
|
64
52
|
To install this gem onto your local machine, run `bundle exec rake install`.
|
65
53
|
|
@@ -71,7 +59,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/coezbe
|
|
71
59
|
|
72
60
|
## License
|
73
61
|
|
74
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
62
|
+
The gem is available as permissive open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
75
63
|
|
76
64
|
## What's with the name?
|
77
65
|
|
data/lib/cem/version.rb
CHANGED