faalis 2.0.8 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +2 -0
- data.tar.gz.sig +0 -0
- data/Rakefile +15 -9
- data/app/assets/javascripts/faalis/dashboard/application.js.erb +4 -3
- data/app/assets/javascripts/faalis/dashboard/init.js.coffee +1 -1
- data/{spec/dummy/public/favicon.ico → app/assets/javascripts/faalis/dashboard/lib/amd.js.coffee.erb} +0 -0
- data/app/assets/stylesheets/faalis/dashboard/share.scss +5 -0
- data/app/controllers/faalis/assets_controller.rb +6 -0
- data/app/controllers/faalis/dashboard/user_messages_controller.rb +27 -0
- data/app/models/application_record.rb +3 -0
- data/app/models/faalis/group.rb +4 -3
- data/app/models/faalis/permission.rb +2 -2
- data/app/models/faalis/user.rb +1 -7
- data/app/models/faalis/user_message.rb +6 -0
- data/app/policies/faalis/user_message_policy.rb +9 -0
- data/app/policies/faalis/user_policy.rb +1 -1
- data/app/views/faalis/dashboard/resource/edit.html.slim +1 -1
- data/app/views/faalis/dashboard/resource/show.html.slim +1 -2
- data/app/views/faalis/dashboard/shared/_header.html.erb +2 -2
- data/app/views/faalis/dashboard/user_messages/_form.html.slim +0 -0
- data/app/views/faalis/dashboard/user_messages/create.js.erb +0 -0
- data/app/views/faalis/dashboard/user_messages/destroy.js.erb +0 -0
- data/app/views/faalis/dashboard/user_messages/new.html.slim +72 -0
- data/app/views/layouts/faalis/dashboard.html.erb +2 -1
- data/config/locales/faalis.en.yml +2 -1
- data/config/routes.rb +6 -21
- data/db/migrate/20160310105736_create_faalis_user_messages.rb +16 -0
- data/lib/faalis.rb +1 -1
- data/lib/faalis/configuration.rb +79 -52
- data/lib/faalis/dashboard/dsl.rb +1 -0
- data/lib/faalis/dashboard/models/sidebar.rb +42 -16
- data/lib/faalis/dashboard/sections/resource.rb +152 -130
- data/lib/faalis/dashboard/sections/resource_create.rb +1 -3
- data/lib/faalis/engine.rb +7 -5
- data/lib/faalis/orm.rb +5 -5
- data/lib/faalis/version.rb +1 -1
- data/{spec → test}/dummy/README.rdoc +0 -0
- data/{spec → test}/dummy/Rakefile +0 -0
- data/{spec → test}/dummy/app/assets/javascripts/application.js +0 -0
- data/{spec → test}/dummy/app/assets/javascripts/dashboard/application.js +0 -0
- data/{spec → test}/dummy/app/assets/stylesheets/application.css +0 -0
- data/{spec → test}/dummy/app/assets/stylesheets/dashboard/ltr/application.css +0 -0
- data/{spec → test}/dummy/app/assets/stylesheets/dashboard/rtl/application.css +0 -0
- data/{spec → test}/dummy/app/assets/stylesheets/ltr/application.css +0 -0
- data/{spec → test}/dummy/app/assets/stylesheets/rtl/application.css +0 -0
- data/{spec → test}/dummy/app/controllers/api_controller.rb +0 -0
- data/{spec → test}/dummy/app/controllers/application_controller.rb +0 -0
- data/{spec → test}/dummy/app/controllers/dashboard/application_controller.rb +0 -0
- data/{spec → test}/dummy/app/helpers/application_helper.rb +0 -0
- data/{spec → test}/dummy/app/policies/application_policy.rb +0 -0
- data/{spec → test}/dummy/app/views/layouts/application.html.erb +0 -0
- data/{spec → test}/dummy/bin/bundle +0 -0
- data/{spec → test}/dummy/bin/rails +0 -0
- data/{spec → test}/dummy/bin/rake +0 -0
- data/{spec → test}/dummy/config.ru +0 -0
- data/{spec → test}/dummy/config/application.rb +0 -0
- data/{spec → test}/dummy/config/boot.rb +0 -0
- data/{spec → test}/dummy/config/database.yml +0 -0
- data/{spec → test}/dummy/config/environment.rb +0 -0
- data/{spec → test}/dummy/config/environments/development.rb +0 -0
- data/{spec → test}/dummy/config/environments/production.rb +0 -0
- data/{spec → test}/dummy/config/environments/test.rb +2 -0
- data/{spec → test}/dummy/config/initializers/backtrace_silencers.rb +0 -0
- data/{spec → test}/dummy/config/initializers/devise.rb +0 -0
- data/{spec → test}/dummy/config/initializers/faalis.rb +0 -0
- data/{spec → test}/dummy/config/initializers/faalis_assets.rb +0 -0
- data/{spec → test}/dummy/config/initializers/filter_parameter_logging.rb +0 -0
- data/{spec → test}/dummy/config/initializers/formstatic.rb +0 -0
- data/{spec → test}/dummy/config/initializers/formtastic.rb +0 -0
- data/{spec → test}/dummy/config/initializers/inflections.rb +0 -0
- data/{spec → test}/dummy/config/initializers/kaminari_config.rb +0 -0
- data/{spec → test}/dummy/config/initializers/mime_types.rb +0 -0
- data/{spec → test}/dummy/config/initializers/secret_token.rb +0 -0
- data/{spec → test}/dummy/config/initializers/session_store.rb +0 -0
- data/{spec → test}/dummy/config/initializers/wrap_parameters.rb +0 -0
- data/{spec → test}/dummy/config/locales/en.yml +0 -0
- data/{spec → test}/dummy/config/routes.rb +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/{spec → test}/dummy/lib/templates/slim/scaffold/_form.html.slim +0 -0
- data/test/dummy/log/test.log +0 -0
- data/{spec → test}/dummy/public/404.html +0 -0
- data/{spec → test}/dummy/public/422.html +0 -0
- data/{spec → test}/dummy/public/500.html +0 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/fabricators/faalis/groups.rb +27 -0
- data/test/fabricators/faalis/permissions.rb +14 -0
- data/test/fabricators/faalis/users.rb +17 -0
- data/test/generators/install_generator_test.rb +84 -0
- data/test/integration/faalis/authentication_test.rb +36 -0
- data/test/integration/faalis/dashboard_test.rb +64 -0
- data/test/test_helper.rb +72 -0
- metadata +291 -150
- metadata.gz.sig +1 -0
- data/app/controllers/faalis/api/v1/conversations_controller.rb +0 -120
- data/app/controllers/faalis/api/v1/groups_controller.rb +0 -71
- data/app/controllers/faalis/api/v1/logs_controller.rb +0 -12
- data/app/controllers/faalis/api/v1/permissions_controller.rb +0 -61
- data/app/controllers/faalis/api/v1/profiles_controller.rb +0 -42
- data/app/controllers/faalis/api/v1/users_controller.rb +0 -75
- data/lib/faalis_application.rb +0 -446
- data/lib/faalis_plugin.rb +0 -477
- data/spec/factories/faalis/groups.rb +0 -31
- data/spec/factories/faalis/permissions.rb +0 -16
- data/spec/factories/faalis/users.rb +0 -23
- data/spec/features/dashboard_spec.rb +0 -36
- data/spec/features/record_not_found_spec.rb +0 -24
- data/spec/features/sign_in_spec.rb +0 -37
- data/spec/generators/install_spec.rb +0 -58
- data/spec/models/faalis/group_spec.rb +0 -32
- data/spec/models/faalis/permission_spec.rb +0 -15
- data/spec/models/faalis/user_spec.rb +0 -100
- data/spec/policies/faalis/admin_only_policy_spec.rb +0 -39
- data/spec/policies/faalis/application_policy_spec.rb +0 -49
- data/spec/spec_helper.rb +0 -89
- data/spec/support/factory_girl.rb +0 -3
data/lib/faalis_plugin.rb
DELETED
@@ -1,477 +0,0 @@
|
|
1
|
-
say
|
2
|
-
|
3
|
-
app_name = ask("What's your app name: ").downcase.underscore
|
4
|
-
|
5
|
-
gem_group :development do
|
6
|
-
gem "pry"
|
7
|
-
gem 'rspec-rails', '~> 3.0.0.beta'
|
8
|
-
gem "capybara"
|
9
|
-
gem "factory_girl_rails", "~> 4.0", :require => false
|
10
|
-
gem "database_cleaner"
|
11
|
-
gem "email_spec"
|
12
|
-
gem "cucumber-rails", :require => false
|
13
|
-
gem "json_spec", :git => "git://github.com/Yellowen/json_spec.git"
|
14
|
-
gem "capybara-webkit"
|
15
|
-
end
|
16
|
-
|
17
|
-
|
18
|
-
insert_into_file "Gemfile", :after => "group :development do\n" do
|
19
|
-
"\n gem 'faalis', :path => File.expand_path('../../Faalis/', __FILE__)\n"
|
20
|
-
end
|
21
|
-
|
22
|
-
gsub_file "#{app_name}.gemspec", /test\/\*\*\/\*/, "spec/**/*"
|
23
|
-
|
24
|
-
insert_into_file "#{app_name}.gemspec", :after => 's.add_development_dependency "sqlite3"' do
|
25
|
-
"\n s.add_dependency 'globalize'"
|
26
|
-
end
|
27
|
-
|
28
|
-
insert_into_file "#{app_name}.gemspec", :after => 's.add_development_dependency "sqlite3"' do
|
29
|
-
"\n s.add_dependency 'jbuilder'"
|
30
|
-
end
|
31
|
-
insert_into_file "#{app_name}.gemspec", :after => 's.add_development_dependency "sqlite3"' do
|
32
|
-
"\n s.add_dependency 'sass-rails'"
|
33
|
-
end
|
34
|
-
insert_into_file "#{app_name}.gemspec", :after => 's.add_development_dependency "sqlite3"' do
|
35
|
-
"\n s.add_dependency 'uglifier'"
|
36
|
-
end
|
37
|
-
insert_into_file "#{app_name}.gemspec", :after => 's.add_development_dependency "sqlite3"' do
|
38
|
-
"\n s.add_dependency 'jquery-rails'\n"
|
39
|
-
end
|
40
|
-
insert_into_file "#{app_name}.gemspec", :after => 's.add_development_dependency "sqlite3"' do
|
41
|
-
"\n s.add_dependency 'faalis'\n"
|
42
|
-
end
|
43
|
-
|
44
|
-
inside "app/assets/javascripts/" do
|
45
|
-
run "mkdir #{app_name.underscore.downcase}"
|
46
|
-
run "touch #{app_name.underscore.downcase}/application.js"
|
47
|
-
end
|
48
|
-
append_file "app/assets/javascripts/#{app_name.underscore.downcase}/application.js" do <<-'FILE'
|
49
|
-
//= require_tree ./modules
|
50
|
-
FILE
|
51
|
-
end
|
52
|
-
|
53
|
-
gsub_file "lib/#{app_name}.rb", /require '#{app_name}\/engine'/, ""
|
54
|
-
append_file "lib/#{app_name}.rb", "\nrequire '#{app_name}/engine'"
|
55
|
-
gsub_file "Gemfile", /https/, "http"
|
56
|
-
|
57
|
-
gsub_file "lib/#{app_name}/engine.rb", /module #{app_name.camelize}\n/, %Q{if File.exists?([File.expand_path("../../../", __FILE__),
|
58
|
-
".development"].join("/"))
|
59
|
-
$LOAD_PATH << File.expand_path('../../../../Faalis/lib', __FILE__)
|
60
|
-
end
|
61
|
-
|
62
|
-
require "faalis"
|
63
|
-
|
64
|
-
|
65
|
-
module #{app_name.camelize}
|
66
|
-
}
|
67
|
-
|
68
|
-
insert_into_file "lib/#{app_name}/engine.rb", :after => " class Engine < ::Rails::Engine\n" do
|
69
|
-
%Q{ engine_name "#{app_name}"
|
70
|
-
|
71
|
-
::Faalis::Engine.setup do |config|
|
72
|
-
config.models_with_permission = []
|
73
|
-
end
|
74
|
-
|
75
|
-
::Faalis::Plugins.register "#{app_name}", self
|
76
|
-
::Faalis::Engine.dashboard_js_manifest = "#{app_name}/application.js"
|
77
|
-
}
|
78
|
-
end
|
79
|
-
|
80
|
-
gsub_file "#{app_name}.gemspec", /MIT-LICENSE/, "LICENSE"
|
81
|
-
remove_file "MIT-LICENSE"
|
82
|
-
insert_into_file "#{app_name}.gemspec", :after => "Gem::Specification.new do |s|\n" do
|
83
|
-
"\n s.licenses = ['GPL-2']\n"
|
84
|
-
end
|
85
|
-
|
86
|
-
git :init
|
87
|
-
|
88
|
-
create_file "LICENSE" do
|
89
|
-
<<-'CODE'
|
90
|
-
GNU GENERAL PUBLIC LICENSE
|
91
|
-
Version 2, June 1991
|
92
|
-
|
93
|
-
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
94
|
-
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
95
|
-
Everyone is permitted to copy and distribute verbatim copies
|
96
|
-
of this license document, but changing it is not allowed.
|
97
|
-
|
98
|
-
Preamble
|
99
|
-
|
100
|
-
The licenses for most software are designed to take away your
|
101
|
-
freedom to share and change it. By contrast, the GNU General Public
|
102
|
-
License is intended to guarantee your freedom to share and change free
|
103
|
-
software--to make sure the software is free for all its users. This
|
104
|
-
General Public License applies to most of the Free Software
|
105
|
-
Foundation's software and to any other program whose authors commit to
|
106
|
-
using it. (Some other Free Software Foundation software is covered by
|
107
|
-
the GNU Lesser General Public License instead.) You can apply it to
|
108
|
-
your programs, too.
|
109
|
-
|
110
|
-
When we speak of free software, we are referring to freedom, not
|
111
|
-
price. Our General Public Licenses are designed to make sure that you
|
112
|
-
have the freedom to distribute copies of free software (and charge for
|
113
|
-
this service if you wish), that you receive source code or can get it
|
114
|
-
if you want it, that you can change the software or use pieces of it
|
115
|
-
in new free programs; and that you know you can do these things.
|
116
|
-
|
117
|
-
To protect your rights, we need to make restrictions that forbid
|
118
|
-
anyone to deny you these rights or to ask you to surrender the rights.
|
119
|
-
These restrictions translate to certain responsibilities for you if you
|
120
|
-
distribute copies of the software, or if you modify it.
|
121
|
-
|
122
|
-
For example, if you distribute copies of such a program, whether
|
123
|
-
gratis or for a fee, you must give the recipients all the rights that
|
124
|
-
you have. You must make sure that they, too, receive or can get the
|
125
|
-
source code. And you must show them these terms so they know their
|
126
|
-
rights.
|
127
|
-
|
128
|
-
We protect your rights with two steps: (1) copyright the software, and
|
129
|
-
(2) offer you this license which gives you legal permission to copy,
|
130
|
-
distribute and/or modify the software.
|
131
|
-
|
132
|
-
Also, for each author's protection and ours, we want to make certain
|
133
|
-
that everyone understands that there is no warranty for this free
|
134
|
-
software. If the software is modified by someone else and passed on, we
|
135
|
-
want its recipients to know that what they have is not the original, so
|
136
|
-
that any problems introduced by others will not reflect on the original
|
137
|
-
authors' reputations.
|
138
|
-
|
139
|
-
Finally, any free program is threatened constantly by software
|
140
|
-
patents. We wish to avoid the danger that redistributors of a free
|
141
|
-
program will individually obtain patent licenses, in effect making the
|
142
|
-
program proprietary. To prevent this, we have made it clear that any
|
143
|
-
patent must be licensed for everyone's free use or not licensed at all.
|
144
|
-
|
145
|
-
The precise terms and conditions for copying, distribution and
|
146
|
-
modification follow.
|
147
|
-
|
148
|
-
GNU GENERAL PUBLIC LICENSE
|
149
|
-
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
150
|
-
|
151
|
-
0. This License applies to any program or other work which contains
|
152
|
-
a notice placed by the copyright holder saying it may be distributed
|
153
|
-
under the terms of this General Public License. The "Program", below,
|
154
|
-
refers to any such program or work, and a "work based on the Program"
|
155
|
-
means either the Program or any derivative work under copyright law:
|
156
|
-
that is to say, a work containing the Program or a portion of it,
|
157
|
-
either verbatim or with modifications and/or translated into another
|
158
|
-
language. (Hereinafter, translation is included without limitation in
|
159
|
-
the term "modification".) Each licensee is addressed as "you".
|
160
|
-
|
161
|
-
Activities other than copying, distribution and modification are not
|
162
|
-
covered by this License; they are outside its scope. The act of
|
163
|
-
running the Program is not restricted, and the output from the Program
|
164
|
-
is covered only if its contents constitute a work based on the
|
165
|
-
Program (independent of having been made by running the Program).
|
166
|
-
Whether that is true depends on what the Program does.
|
167
|
-
|
168
|
-
1. You may copy and distribute verbatim copies of the Program's
|
169
|
-
source code as you receive it, in any medium, provided that you
|
170
|
-
conspicuously and appropriately publish on each copy an appropriate
|
171
|
-
copyright notice and disclaimer of warranty; keep intact all the
|
172
|
-
notices that refer to this License and to the absence of any warranty;
|
173
|
-
and give any other recipients of the Program a copy of this License
|
174
|
-
along with the Program.
|
175
|
-
|
176
|
-
You may charge a fee for the physical act of transferring a copy, and
|
177
|
-
you may at your option offer warranty protection in exchange for a fee.
|
178
|
-
|
179
|
-
2. You may modify your copy or copies of the Program or any portion
|
180
|
-
of it, thus forming a work based on the Program, and copy and
|
181
|
-
distribute such modifications or work under the terms of Section 1
|
182
|
-
above, provided that you also meet all of these conditions:
|
183
|
-
|
184
|
-
a) You must cause the modified files to carry prominent notices
|
185
|
-
stating that you changed the files and the date of any change.
|
186
|
-
|
187
|
-
b) You must cause any work that you distribute or publish, that in
|
188
|
-
whole or in part contains or is derived from the Program or any
|
189
|
-
part thereof, to be licensed as a whole at no charge to all third
|
190
|
-
parties under the terms of this License.
|
191
|
-
|
192
|
-
c) If the modified program normally reads commands interactively
|
193
|
-
when run, you must cause it, when started running for such
|
194
|
-
interactive use in the most ordinary way, to print or display an
|
195
|
-
announcement including an appropriate copyright notice and a
|
196
|
-
notice that there is no warranty (or else, saying that you provide
|
197
|
-
a warranty) and that users may redistribute the program under
|
198
|
-
these conditions, and telling the user how to view a copy of this
|
199
|
-
License. (Exception: if the Program itself is interactive but
|
200
|
-
does not normally print such an announcement, your work based on
|
201
|
-
the Program is not required to print an announcement.)
|
202
|
-
|
203
|
-
These requirements apply to the modified work as a whole. If
|
204
|
-
identifiable sections of that work are not derived from the Program,
|
205
|
-
and can be reasonably considered independent and separate works in
|
206
|
-
themselves, then this License, and its terms, do not apply to those
|
207
|
-
sections when you distribute them as separate works. But when you
|
208
|
-
distribute the same sections as part of a whole which is a work based
|
209
|
-
on the Program, the distribution of the whole must be on the terms of
|
210
|
-
this License, whose permissions for other licensees extend to the
|
211
|
-
entire whole, and thus to each and every part regardless of who wrote it.
|
212
|
-
|
213
|
-
Thus, it is not the intent of this section to claim rights or contest
|
214
|
-
your rights to work written entirely by you; rather, the intent is to
|
215
|
-
exercise the right to control the distribution of derivative or
|
216
|
-
collective works based on the Program.
|
217
|
-
|
218
|
-
In addition, mere aggregation of another work not based on the Program
|
219
|
-
with the Program (or with a work based on the Program) on a volume of
|
220
|
-
a storage or distribution medium does not bring the other work under
|
221
|
-
the scope of this License.
|
222
|
-
|
223
|
-
3. You may copy and distribute the Program (or a work based on it,
|
224
|
-
under Section 2) in object code or executable form under the terms of
|
225
|
-
Sections 1 and 2 above provided that you also do one of the following:
|
226
|
-
|
227
|
-
a) Accompany it with the complete corresponding machine-readable
|
228
|
-
source code, which must be distributed under the terms of Sections
|
229
|
-
1 and 2 above on a medium customarily used for software interchange; or,
|
230
|
-
|
231
|
-
b) Accompany it with a written offer, valid for at least three
|
232
|
-
years, to give any third party, for a charge no more than your
|
233
|
-
cost of physically performing source distribution, a complete
|
234
|
-
machine-readable copy of the corresponding source code, to be
|
235
|
-
distributed under the terms of Sections 1 and 2 above on a medium
|
236
|
-
customarily used for software interchange; or,
|
237
|
-
|
238
|
-
c) Accompany it with the information you received as to the offer
|
239
|
-
to distribute corresponding source code. (This alternative is
|
240
|
-
allowed only for noncommercial distribution and only if you
|
241
|
-
received the program in object code or executable form with such
|
242
|
-
an offer, in accord with Subsection b above.)
|
243
|
-
|
244
|
-
The source code for a work means the preferred form of the work for
|
245
|
-
making modifications to it. For an executable work, complete source
|
246
|
-
code means all the source code for all modules it contains, plus any
|
247
|
-
associated interface definition files, plus the scripts used to
|
248
|
-
control compilation and installation of the executable. However, as a
|
249
|
-
special exception, the source code distributed need not include
|
250
|
-
anything that is normally distributed (in either source or binary
|
251
|
-
form) with the major components (compiler, kernel, and so on) of the
|
252
|
-
operating system on which the executable runs, unless that component
|
253
|
-
itself accompanies the executable.
|
254
|
-
|
255
|
-
If distribution of executable or object code is made by offering
|
256
|
-
access to copy from a designated place, then offering equivalent
|
257
|
-
access to copy the source code from the same place counts as
|
258
|
-
distribution of the source code, even though third parties are not
|
259
|
-
compelled to copy the source along with the object code.
|
260
|
-
|
261
|
-
4. You may not copy, modify, sublicense, or distribute the Program
|
262
|
-
except as expressly provided under this License. Any attempt
|
263
|
-
otherwise to copy, modify, sublicense or distribute the Program is
|
264
|
-
void, and will automatically terminate your rights under this License.
|
265
|
-
However, parties who have received copies, or rights, from you under
|
266
|
-
this License will not have their licenses terminated so long as such
|
267
|
-
parties remain in full compliance.
|
268
|
-
|
269
|
-
5. You are not required to accept this License, since you have not
|
270
|
-
signed it. However, nothing else grants you permission to modify or
|
271
|
-
distribute the Program or its derivative works. These actions are
|
272
|
-
prohibited by law if you do not accept this License. Therefore, by
|
273
|
-
modifying or distributing the Program (or any work based on the
|
274
|
-
Program), you indicate your acceptance of this License to do so, and
|
275
|
-
all its terms and conditions for copying, distributing or modifying
|
276
|
-
the Program or works based on it.
|
277
|
-
|
278
|
-
6. Each time you redistribute the Program (or any work based on the
|
279
|
-
Program), the recipient automatically receives a license from the
|
280
|
-
original licensor to copy, distribute or modify the Program subject to
|
281
|
-
these terms and conditions. You may not impose any further
|
282
|
-
restrictions on the recipients' exercise of the rights granted herein.
|
283
|
-
You are not responsible for enforcing compliance by third parties to
|
284
|
-
this License.
|
285
|
-
|
286
|
-
7. If, as a consequence of a court judgment or allegation of patent
|
287
|
-
infringement or for any other reason (not limited to patent issues),
|
288
|
-
conditions are imposed on you (whether by court order, agreement or
|
289
|
-
otherwise) that contradict the conditions of this License, they do not
|
290
|
-
excuse you from the conditions of this License. If you cannot
|
291
|
-
distribute so as to satisfy simultaneously your obligations under this
|
292
|
-
License and any other pertinent obligations, then as a consequence you
|
293
|
-
may not distribute the Program at all. For example, if a patent
|
294
|
-
license would not permit royalty-free redistribution of the Program by
|
295
|
-
all those who receive copies directly or indirectly through you, then
|
296
|
-
the only way you could satisfy both it and this License would be to
|
297
|
-
refrain entirely from distribution of the Program.
|
298
|
-
|
299
|
-
If any portion of this section is held invalid or unenforceable under
|
300
|
-
any particular circumstance, the balance of the section is intended to
|
301
|
-
apply and the section as a whole is intended to apply in other
|
302
|
-
circumstances.
|
303
|
-
|
304
|
-
It is not the purpose of this section to induce you to infringe any
|
305
|
-
patents or other property right claims or to contest validity of any
|
306
|
-
such claims; this section has the sole purpose of protecting the
|
307
|
-
integrity of the free software distribution system, which is
|
308
|
-
implemented by public license practices. Many people have made
|
309
|
-
generous contributions to the wide range of software distributed
|
310
|
-
through that system in reliance on consistent application of that
|
311
|
-
system; it is up to the author/donor to decide if he or she is willing
|
312
|
-
to distribute software through any other system and a licensee cannot
|
313
|
-
impose that choice.
|
314
|
-
|
315
|
-
This section is intended to make thoroughly clear what is believed to
|
316
|
-
be a consequence of the rest of this License.
|
317
|
-
|
318
|
-
8. If the distribution and/or use of the Program is restricted in
|
319
|
-
certain countries either by patents or by copyrighted interfaces, the
|
320
|
-
original copyright holder who places the Program under this License
|
321
|
-
may add an explicit geographical distribution limitation excluding
|
322
|
-
those countries, so that distribution is permitted only in or among
|
323
|
-
countries not thus excluded. In such case, this License incorporates
|
324
|
-
the limitation as if written in the body of this License.
|
325
|
-
|
326
|
-
9. The Free Software Foundation may publish revised and/or new versions
|
327
|
-
of the General Public License from time to time. Such new versions will
|
328
|
-
be similar in spirit to the present version, but may differ in detail to
|
329
|
-
address new problems or concerns.
|
330
|
-
|
331
|
-
Each version is given a distinguishing version number. If the Program
|
332
|
-
specifies a version number of this License which applies to it and "any
|
333
|
-
later version", you have the option of following the terms and conditions
|
334
|
-
either of that version or of any later version published by the Free
|
335
|
-
Software Foundation. If the Program does not specify a version number of
|
336
|
-
this License, you may choose any version ever published by the Free Software
|
337
|
-
Foundation.
|
338
|
-
|
339
|
-
10. If you wish to incorporate parts of the Program into other free
|
340
|
-
programs whose distribution conditions are different, write to the author
|
341
|
-
to ask for permission. For software which is copyrighted by the Free
|
342
|
-
Software Foundation, write to the Free Software Foundation; we sometimes
|
343
|
-
make exceptions for this. Our decision will be guided by the two goals
|
344
|
-
of preserving the free status of all derivatives of our free software and
|
345
|
-
of promoting the sharing and reuse of software generally.
|
346
|
-
|
347
|
-
NO WARRANTY
|
348
|
-
|
349
|
-
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
350
|
-
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
351
|
-
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
352
|
-
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
353
|
-
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
354
|
-
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
355
|
-
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
356
|
-
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
357
|
-
REPAIR OR CORRECTION.
|
358
|
-
|
359
|
-
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
360
|
-
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
361
|
-
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
362
|
-
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
363
|
-
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
364
|
-
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
365
|
-
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
366
|
-
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
367
|
-
POSSIBILITY OF SUCH DAMAGES.
|
368
|
-
|
369
|
-
END OF TERMS AND CONDITIONS
|
370
|
-
|
371
|
-
How to Apply These Terms to Your New Programs
|
372
|
-
|
373
|
-
If you develop a new program, and you want it to be of the greatest
|
374
|
-
possible use to the public, the best way to achieve this is to make it
|
375
|
-
free software which everyone can redistribute and change under these terms.
|
376
|
-
|
377
|
-
To do so, attach the following notices to the program. It is safest
|
378
|
-
to attach them to the start of each source file to most effectively
|
379
|
-
convey the exclusion of warranty; and each file should have at least
|
380
|
-
the "copyright" line and a pointer to where the full notice is found.
|
381
|
-
|
382
|
-
A ruby on rails engine which provides a very basic web application to use with other ruby on rails applications
|
383
|
-
Copyright (C) 2013 Yellowen Inc
|
384
|
-
|
385
|
-
This program is free software; you can redistribute it and/or modify
|
386
|
-
it under the terms of the GNU General Public License as published by
|
387
|
-
the Free Software Foundation; either version 2 of the License, or
|
388
|
-
(at your option) any later version.
|
389
|
-
|
390
|
-
This program is distributed in the hope that it will be useful,
|
391
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
392
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
393
|
-
GNU General Public License for more details.
|
394
|
-
|
395
|
-
You should have received a copy of the GNU General Public License along
|
396
|
-
with this program; if not, write to the Free Software Foundation, Inc.,
|
397
|
-
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
398
|
-
|
399
|
-
Also add information on how to contact you by electronic and paper mail.
|
400
|
-
|
401
|
-
If the program is interactive, make it output a short notice like this
|
402
|
-
when it starts in an interactive mode:
|
403
|
-
|
404
|
-
Gnomovision version 69, Copyright (C) year name of author
|
405
|
-
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
406
|
-
This is free software, and you are welcome to redistribute it
|
407
|
-
under certain conditions; type `show c' for details.
|
408
|
-
|
409
|
-
The hypothetical commands `show w' and `show c' should show the appropriate
|
410
|
-
parts of the General Public License. Of course, the commands you use may
|
411
|
-
be called something other than `show w' and `show c'; they could even be
|
412
|
-
mouse-clicks or menu items--whatever suits your program.
|
413
|
-
|
414
|
-
You should also get your employer (if you work as a programmer) or your
|
415
|
-
school, if any, to sign a "copyright disclaimer" for the program, if
|
416
|
-
necessary. Here is a sample; alter the names:
|
417
|
-
|
418
|
-
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
419
|
-
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
420
|
-
|
421
|
-
{signature of Ty Coon}, 1 April 1989
|
422
|
-
Ty Coon, President of Vice
|
423
|
-
|
424
|
-
This General Public License does not permit incorporating your program into
|
425
|
-
proprietary programs. If your program is a subroutine library, you may
|
426
|
-
consider it more useful to permit linking proprietary applications with the
|
427
|
-
library. If this is what you want to do, use the GNU Lesser General
|
428
|
-
Public License instead of this License.
|
429
|
-
CODE
|
430
|
-
end
|
431
|
-
create_file ".gitignore" do
|
432
|
-
%Q{
|
433
|
-
.bundle/
|
434
|
-
log/*.log
|
435
|
-
*~
|
436
|
-
pkg/
|
437
|
-
test/dummy/db/*.sqlite3
|
438
|
-
test/dummy/db/*.sqlite3-journal
|
439
|
-
test/dummy/log/*.log
|
440
|
-
test/dummy/tmp/
|
441
|
-
test/dummy/.sass-cache
|
442
|
-
spec/dummy/db/*.sqlite3
|
443
|
-
spec/dummy/db/*.sqlite3-journal
|
444
|
-
spec/dummy/log/*.log
|
445
|
-
spec/dummy/tmp/
|
446
|
-
spec/dummy/.sass-cache
|
447
|
-
|
448
|
-
*.rbc
|
449
|
-
*.sassc
|
450
|
-
.sass-cache
|
451
|
-
capybara-*.html
|
452
|
-
.rspec
|
453
|
-
.rvmrc
|
454
|
-
/.bundle
|
455
|
-
/vendor/bundle
|
456
|
-
/log/*
|
457
|
-
/tmp/*
|
458
|
-
/db/*.sqlite3
|
459
|
-
/public/system/*
|
460
|
-
/coverage/
|
461
|
-
/spec/tmp/*
|
462
|
-
**.orig
|
463
|
-
rerun.txt
|
464
|
-
pickle-email-*.html
|
465
|
-
.project
|
466
|
-
config/initializers/secret_token.rb
|
467
|
-
.*\#*#
|
468
|
-
\#*#
|
469
|
-
docs/*
|
470
|
-
node_modules/
|
471
|
-
.development
|
472
|
-
doc/
|
473
|
-
}
|
474
|
-
end
|
475
|
-
|
476
|
-
git add: "."
|
477
|
-
git commit: %Q{-a -m "Initial commit"}
|