fine_print 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -113,6 +113,30 @@ Here are some important notes about managing your agreements with FinePrint:
113
113
  - Agreements cannot be modified after at least one user has accepted them, but you can always create new versions
114
114
  - When a new version is present, users will be asked to accept it the next time they visit a controller action that calls `fine_print_agreement`
115
115
 
116
+ ## Customization
117
+
118
+ You can customize FinePrint's stylesheets, javascripts, views, controllers and even models to suit your needs.
119
+
120
+ Run the following command to copy a part of FinePrint into your main application:
121
+
122
+ ```sh
123
+ $ rake fine_print:copy:folder
124
+ ```
125
+
126
+ Where folder is one of `stylesheets`, `javascripts`, `layouts`, `views`, `controllers` or `models`.
127
+
128
+ Example:
129
+
130
+ ```sh
131
+ $ rake fine_print:copy:views
132
+ ```
133
+
134
+ Alternatively, you can run the following command to copy all of the above into your main application:
135
+
136
+ ```sh
137
+ $ rake fine_print:copy
138
+ ```
139
+
116
140
  ## Contributing
117
141
 
118
142
  1. Fork it
@@ -1,3 +1,3 @@
1
1
  module FinePrint
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module FinePrint
2
- VERSION = "0.0.0"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -1,4 +1,4 @@
1
- COPY_TASKS = ['assets/stylesheets', 'views', 'helpers', 'controllers', 'models']
1
+ COPY_TASKS = ['assets/stylesheets', 'assets/javascripts', 'views/layouts', 'views', 'controllers', 'models']
2
2
 
3
3
  namespace :fine_print do
4
4
  namespace :install do
@@ -1,4 +1,4 @@
1
- COPY_TASKS = ['assets/stylesheets', 'views', 'helpers', 'controllers', 'models']
1
+ COPY_TASKS = ['assets/stylesheets', 'assets/javascripts', 'layouts', 'views', 'controllers', 'models']
2
2
 
3
3
  namespace :fine_print do
4
4
  namespace :install do
@@ -40,46 +40,3 @@ namespace :fine_print do
40
40
  end
41
41
  end
42
42
 
43
-
44
- COPY_TASKS = ['assets/images', 'assets/stylesheets', 'views', 'mailers', 'helpers', 'controllers', 'models']
45
-
46
- namespace :commontator do
47
- namespace :install do
48
- desc "Copy initializers from commontator to application"
49
- task :initializers do
50
- Dir.glob(File.expand_path('../../../config/initializers/*.rb', __FILE__)) do |file|
51
- if File.exists?(File.expand_path(File.basename(file), 'config/initializers'))
52
- print "NOTE: Initializer #{File.basename(file)} from commontator has been skipped. Initializer with the same name already exists.\n"
53
- else
54
- cp file, 'config/initializers', :verbose => false
55
- print "Copied initializer #{File.basename(file)} from commontator\n"
56
- end
57
- end
58
- end
59
- end
60
-
61
- namespace :copy do
62
- COPY_TASKS.each do |path|
63
- name = File.basename(path)
64
- desc "Copy #{name} from commontator to application"
65
- task name.to_sym do
66
- cp_r File.expand_path("../../../app/#{path}/commontator", __FILE__), "app/#{path}", :verbose => false
67
- print "Copied #{name} from commontator\n"
68
- end
69
- end
70
- end
71
-
72
- desc "Copy initializers and migrations from commontator to application"
73
- task :install do
74
- Rake::Task["commontator:install:initializers"].invoke
75
- Rake::Task["commontator:install:migrations"].invoke
76
- end
77
-
78
- desc "Copy assets, views, mailers, helpers, controllers and models from commontator to application"
79
- task :copy do
80
- COPY_TASKS.each do |path|
81
- Rake::Task["commontator:copy:#{File.basename(path)}"].invoke
82
- end
83
- end
84
- end
85
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fine_print
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: