midwire_common 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/README.md +14 -11
- data/lib/midwire_common/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Midwire Common Gem
|
2
2
|
|
3
|
-
**Version: 0.1.
|
3
|
+
**Version: 0.1.1**
|
4
4
|
|
5
5
|
A handy Ruby library for Midwire development
|
6
6
|
|
@@ -8,32 +8,35 @@ A handy Ruby library for Midwire development
|
|
8
8
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
|
-
gem 'midwire_common', :require => '
|
11
|
+
gem 'midwire_common', :require => 'midwire_common'
|
12
12
|
|
13
13
|
And then execute:
|
14
14
|
|
15
15
|
$ bundle install
|
16
16
|
|
17
|
-
Or install it yourself as:
|
18
|
-
|
19
|
-
$ gem install midwire_common
|
20
|
-
|
21
17
|
## Usage
|
22
18
|
|
23
19
|
### Ruby Class Extensions
|
24
20
|
|
25
|
-
To use the standard class extensions you must include the individual files or '
|
21
|
+
To use the standard class extensions you must include the individual files or 'midwire_common/all' to include everything:
|
22
|
+
|
23
|
+
require 'midwire_common/all'
|
26
24
|
|
27
|
-
|
25
|
+
... or include individual files as necessary:
|
28
26
|
|
29
|
-
require '
|
30
|
-
require '
|
27
|
+
require 'midwire_common/string'
|
28
|
+
require 'midwire_common/array'
|
31
29
|
|
32
30
|
### Rake Tasks
|
33
31
|
|
34
32
|
To use the rake tasks simply `load` that rake file from within your main `Rakefile`:
|
35
33
|
|
36
|
-
|
34
|
+
begin
|
35
|
+
require "midwire_common/rake_tasks"
|
36
|
+
rescue Exception => e
|
37
|
+
puts ">>> You have to run that under 'bundle exec'"
|
38
|
+
exit
|
39
|
+
end
|
37
40
|
|
38
41
|
## Contributing
|
39
42
|
|