matrioshka 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,24 +1,46 @@
1
1
  # Matrioshka
2
2
 
3
- TODO: Write a gem description
3
+ Organizing redistributable Rails applications can be a pain. Typical way to solve the issue is to write a lot of generators to duplicate entries like migrations, seeds and other stuff from the host application. Modern Rails Engines system however has the ability to proxy all that for you. So most of ready Rails applications can become a gem within few simple steps.
4
4
 
5
- ## Installation
5
+ Matrioshka is a set of ready generators that will do the job on your behalf.
6
6
 
7
- Add this line to your application's Gemfile:
7
+ ## Host Application (Gem)
8
8
 
9
- gem 'matrioshka'
9
+ Inject the following to your host application Gemfile:
10
10
 
11
- And then execute:
11
+ ```ruby
12
+ gem 'matrioshka'
13
+ ```
12
14
 
13
- $ bundle
15
+ Run Matrioshka install generator
14
16
 
15
- Or install it yourself as:
17
+ ```bash
18
+ rails g matrioshka:install
19
+ ```
16
20
 
17
- $ gem install matrioshka
21
+ It will generate all the required additions and patches. For a typical application they will just work. However you probably should edit `$application.gemspec` to set proper meta information for your future gem.
18
22
 
19
- ## Usage
23
+ ## Client Application (Consumer)
20
24
 
21
- TODO: Write usage instructions here
25
+ As soon as your gem ready to rumble we can procceed to the consumer. Let's make it work within a new rails application:
26
+
27
+ ```bash
28
+ rails new marakash
29
+ ```
30
+
31
+ Add your application gem to the new Gemfile:
32
+
33
+ ```ruby
34
+ gem '$application'
35
+ ```
36
+
37
+ Run `bundle install` and then
38
+
39
+ ```bash
40
+ rake $application:link
41
+ ```
42
+
43
+ Ta-dam. You are done here. Time to party hard.
22
44
 
23
45
  ## Contributing
24
46
 
@@ -1,3 +1,3 @@
1
1
  module Matrioshka
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/matrioshka.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
10
10
  gem.email = ["boris@roundlake.ru"]
11
11
  gem.description = %q{Turn your Rails 3 application into a gem}
12
12
  gem.summary = gem.description
13
- gem.homepage = ""
13
+ gem.homepage = "https://github.com/inossidabile/matrioshka"
14
14
 
15
15
  gem.files = `git ls-files`.split($/)
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: matrioshka
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -33,7 +33,7 @@ files:
33
33
  - lib/matrioshka/generator.rb
34
34
  - lib/matrioshka/version.rb
35
35
  - matrioshka.gemspec
36
- homepage: ''
36
+ homepage: https://github.com/inossidabile/matrioshka
37
37
  licenses: []
38
38
  post_install_message:
39
39
  rdoc_options: []