tr8n 3.2.2 → 3.2.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.
Files changed (42) hide show
  1. data/Gemfile.lock +1 -1
  2. data/lib/tr8n/version.rb +1 -1
  3. data/tr8n.gemspec +2 -2
  4. metadata +41 -117
  5. data/app/javascript/compile.rb +0 -37
  6. data/app/javascript/compile.sh +0 -1
  7. data/app/javascript/compressors/google/COPYING +0 -202
  8. data/app/javascript/compressors/google/README +0 -292
  9. data/app/javascript/compressors/google/compiler.jar +0 -0
  10. data/app/javascript/config.yml +0 -66
  11. data/app/javascript/src/base.js +0 -35
  12. data/app/javascript/src/effects.js +0 -67
  13. data/app/javascript/src/ext/inflector.js +0 -309
  14. data/app/javascript/src/ext/jsDraw2D.js +0 -24
  15. data/app/javascript/src/ext/keyboard_1_36.js +0 -1214
  16. data/app/javascript/src/ext/keyboard_1_44.js +0 -1735
  17. data/app/javascript/src/ext/keyboard_1_49.js +0 -1796
  18. data/app/javascript/src/ext/md5.js +0 -209
  19. data/app/javascript/src/ext/shortcut.js +0 -223
  20. data/app/javascript/src/init.js +0 -47
  21. data/app/javascript/src/language.js +0 -38
  22. data/app/javascript/src/logger.js +0 -203
  23. data/app/javascript/src/prototype/effects.js +0 -65
  24. data/app/javascript/src/proxy.js +0 -254
  25. data/app/javascript/src/rules/date_rule.js +0 -37
  26. data/app/javascript/src/rules/gender_list_rule.js +0 -37
  27. data/app/javascript/src/rules/gender_rule.js +0 -87
  28. data/app/javascript/src/rules/language_rule.js +0 -55
  29. data/app/javascript/src/rules/list_rule.js +0 -37
  30. data/app/javascript/src/rules/numeric_rule.js +0 -95
  31. data/app/javascript/src/tml/label.js +0 -60
  32. data/app/javascript/src/tml/token.js +0 -107
  33. data/app/javascript/src/tokens/data_token.js +0 -45
  34. data/app/javascript/src/tokens/decoration_token.js +0 -82
  35. data/app/javascript/src/tokens/token.js +0 -121
  36. data/app/javascript/src/tokens/transform_token.js +0 -106
  37. data/app/javascript/src/translation_key.js +0 -183
  38. data/app/javascript/src/ui/language_case_manager.js +0 -155
  39. data/app/javascript/src/ui/language_selector.js +0 -126
  40. data/app/javascript/src/ui/lightbox.js +0 -72
  41. data/app/javascript/src/ui/translator.js +0 -257
  42. data/app/javascript/src/utils.js +0 -286
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tr8n (3.2.2)
4
+ tr8n (3.2.3)
5
5
  coffee-script
6
6
  kaminari
7
7
  rails (>= 3.1.0)
@@ -23,5 +23,5 @@
23
23
 
24
24
 
25
25
  module Tr8n
26
- VERSION = "3.2.2"
26
+ VERSION = "3.2.3"
27
27
  end
@@ -15,8 +15,8 @@ Gem::Specification.new do |s|
15
15
 
16
16
  s.rubyforge_project = 'tr8n'
17
17
 
18
- s.files = `git ls-files`.split("\n")
19
- s.test_files = `git ls-files -- {test,local,spec,features,app/javascript}/*`.split("\n")
18
+ s.files = `git ls-files`.split("\n") - Dir.glob("app/javascripts/**/*")
19
+ s.test_files = `git ls-files -- {test,local,spec,features}/*`.split("\n")
20
20
  s.extra_rdoc_files = ['README.rdoc']
21
21
  s.require_paths = ['lib']
22
22
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tr8n
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.2
4
+ version: 3.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-10 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70352669837360 !ruby/object:Gem::Requirement
16
+ requirement: &70323252848860 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70352669837360
24
+ version_requirements: *70323252848860
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: will_filter
27
- requirement: &70352669862940 !ruby/object:Gem::Requirement
27
+ requirement: &70323252846500 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 3.1.2
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70352669862940
35
+ version_requirements: *70323252846500
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: kaminari
38
- requirement: &70352669862460 !ruby/object:Gem::Requirement
38
+ requirement: &70323252844960 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70352669862460
46
+ version_requirements: *70323252844960
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sass
49
- requirement: &70352669861980 !ruby/object:Gem::Requirement
49
+ requirement: &70323252843540 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70352669861980
57
+ version_requirements: *70323252843540
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: coffee-script
60
- requirement: &70352669861500 !ruby/object:Gem::Requirement
60
+ requirement: &70323252842040 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70352669861500
68
+ version_requirements: *70323252842040
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: fssm
71
- requirement: &70352669861020 !ruby/object:Gem::Requirement
71
+ requirement: &70323252840300 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70352669861020
79
+ version_requirements: *70323252840300
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: pry
82
- requirement: &70352669860540 !ruby/object:Gem::Requirement
82
+ requirement: &70323252838560 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70352669860540
90
+ version_requirements: *70323252838560
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: bundler
93
- requirement: &70352669860060 !ruby/object:Gem::Requirement
93
+ requirement: &70323252836940 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 1.0.0
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *70352669860060
101
+ version_requirements: *70323252836940
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: sqlite3
104
- requirement: &70352669859580 !ruby/object:Gem::Requirement
104
+ requirement: &70323252835360 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '0'
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *70352669859580
112
+ version_requirements: *70323252835360
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: rspec
115
- requirement: &70352669859100 !ruby/object:Gem::Requirement
115
+ requirement: &70323252831200 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: '0'
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *70352669859100
123
+ version_requirements: *70323252831200
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: rspec-rails
126
- requirement: &70352669858620 !ruby/object:Gem::Requirement
126
+ requirement: &70323252821840 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: 2.1.0
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *70352669858620
134
+ version_requirements: *70323252821840
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: factory_girl
137
- requirement: &70352669858140 !ruby/object:Gem::Requirement
137
+ requirement: &70323252816680 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,10 +142,10 @@ dependencies:
142
142
  version: '0'
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *70352669858140
145
+ version_requirements: *70323252816680
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: spork
148
- requirement: &70352669857660 !ruby/object:Gem::Requirement
148
+ requirement: &70323257936000 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ! '>='
@@ -153,10 +153,10 @@ dependencies:
153
153
  version: '0'
154
154
  type: :development
155
155
  prerelease: false
156
- version_requirements: *70352669857660
156
+ version_requirements: *70323257936000
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: watchr
159
- requirement: &70352669857180 !ruby/object:Gem::Requirement
159
+ requirement: &70323257935520 !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
162
162
  - - ! '>='
@@ -164,10 +164,10 @@ dependencies:
164
164
  version: '0'
165
165
  type: :development
166
166
  prerelease: false
167
- version_requirements: *70352669857180
167
+ version_requirements: *70323257935520
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: rr
170
- requirement: &70352669856700 !ruby/object:Gem::Requirement
170
+ requirement: &70323257935040 !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements:
173
173
  - - ! '>='
@@ -175,10 +175,10 @@ dependencies:
175
175
  version: '0'
176
176
  type: :development
177
177
  prerelease: false
178
- version_requirements: *70352669856700
178
+ version_requirements: *70323257935040
179
179
  - !ruby/object:Gem::Dependency
180
180
  name: steak
181
- requirement: &70352669856220 !ruby/object:Gem::Requirement
181
+ requirement: &70323257934560 !ruby/object:Gem::Requirement
182
182
  none: false
183
183
  requirements:
184
184
  - - ! '>='
@@ -186,10 +186,10 @@ dependencies:
186
186
  version: '0'
187
187
  type: :development
188
188
  prerelease: false
189
- version_requirements: *70352669856220
189
+ version_requirements: *70323257934560
190
190
  - !ruby/object:Gem::Dependency
191
191
  name: capybara
192
- requirement: &70352669855740 !ruby/object:Gem::Requirement
192
+ requirement: &70323257934080 !ruby/object:Gem::Requirement
193
193
  none: false
194
194
  requirements:
195
195
  - - ! '>='
@@ -197,10 +197,10 @@ dependencies:
197
197
  version: '0'
198
198
  type: :development
199
199
  prerelease: false
200
- version_requirements: *70352669855740
200
+ version_requirements: *70323257934080
201
201
  - !ruby/object:Gem::Dependency
202
202
  name: database_cleaner
203
- requirement: &70352669855260 !ruby/object:Gem::Requirement
203
+ requirement: &70323257933600 !ruby/object:Gem::Requirement
204
204
  none: false
205
205
  requirements:
206
206
  - - ! '>='
@@ -208,10 +208,10 @@ dependencies:
208
208
  version: '0'
209
209
  type: :development
210
210
  prerelease: false
211
- version_requirements: *70352669855260
211
+ version_requirements: *70323257933600
212
212
  - !ruby/object:Gem::Dependency
213
213
  name: memcache-client
214
- requirement: &70352669871140 !ruby/object:Gem::Requirement
214
+ requirement: &70323257933120 !ruby/object:Gem::Requirement
215
215
  none: false
216
216
  requirements:
217
217
  - - ! '>='
@@ -219,7 +219,7 @@ dependencies:
219
219
  version: 1.8.5
220
220
  type: :development
221
221
  prerelease: false
222
- version_requirements: *70352669871140
222
+ version_requirements: *70323257933120
223
223
  description: Crowd-sourced translation and localization engine for Rails.
224
224
  email:
225
225
  - michael@tr8n.net
@@ -639,44 +639,6 @@ files:
639
639
  - app/helpers/tr8n/admin/base_helper.rb
640
640
  - app/helpers/tr8n/base_helper.rb
641
641
  - app/helpers/tr8n/dashboard_helper.rb
642
- - app/javascript/compile.rb
643
- - app/javascript/compile.sh
644
- - app/javascript/compressors/google/COPYING
645
- - app/javascript/compressors/google/README
646
- - app/javascript/compressors/google/compiler.jar
647
- - app/javascript/config.yml
648
- - app/javascript/src/base.js
649
- - app/javascript/src/effects.js
650
- - app/javascript/src/ext/inflector.js
651
- - app/javascript/src/ext/jsDraw2D.js
652
- - app/javascript/src/ext/keyboard_1_36.js
653
- - app/javascript/src/ext/keyboard_1_44.js
654
- - app/javascript/src/ext/keyboard_1_49.js
655
- - app/javascript/src/ext/md5.js
656
- - app/javascript/src/ext/shortcut.js
657
- - app/javascript/src/init.js
658
- - app/javascript/src/language.js
659
- - app/javascript/src/logger.js
660
- - app/javascript/src/prototype/effects.js
661
- - app/javascript/src/proxy.js
662
- - app/javascript/src/rules/date_rule.js
663
- - app/javascript/src/rules/gender_list_rule.js
664
- - app/javascript/src/rules/gender_rule.js
665
- - app/javascript/src/rules/language_rule.js
666
- - app/javascript/src/rules/list_rule.js
667
- - app/javascript/src/rules/numeric_rule.js
668
- - app/javascript/src/tml/label.js
669
- - app/javascript/src/tml/token.js
670
- - app/javascript/src/tokens/data_token.js
671
- - app/javascript/src/tokens/decoration_token.js
672
- - app/javascript/src/tokens/token.js
673
- - app/javascript/src/tokens/transform_token.js
674
- - app/javascript/src/translation_key.js
675
- - app/javascript/src/ui/language_case_manager.js
676
- - app/javascript/src/ui/language_selector.js
677
- - app/javascript/src/ui/lightbox.js
678
- - app/javascript/src/ui/translator.js
679
- - app/javascript/src/utils.js
680
642
  - app/models/tr8n/base_filter.rb
681
643
  - app/models/tr8n/daily_language_metric.rb
682
644
  - app/models/tr8n/date_rule.rb
@@ -1131,7 +1093,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
1131
1093
  version: '0'
1132
1094
  segments:
1133
1095
  - 0
1134
- hash: -4554087059962764980
1096
+ hash: 1466352018616980581
1135
1097
  required_rubygems_version: !ruby/object:Gem::Requirement
1136
1098
  none: false
1137
1099
  requirements:
@@ -1140,7 +1102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1140
1102
  version: '0'
1141
1103
  segments:
1142
1104
  - 0
1143
- hash: -4554087059962764980
1105
+ hash: 1466352018616980581
1144
1106
  requirements: []
1145
1107
  rubyforge_project: tr8n
1146
1108
  rubygems_version: 1.8.10
@@ -1148,44 +1110,6 @@ signing_key:
1148
1110
  specification_version: 3
1149
1111
  summary: Crowd-sourced translation engine for Rails.
1150
1112
  test_files:
1151
- - app/javascript/compile.rb
1152
- - app/javascript/compile.sh
1153
- - app/javascript/compressors/google/COPYING
1154
- - app/javascript/compressors/google/README
1155
- - app/javascript/compressors/google/compiler.jar
1156
- - app/javascript/config.yml
1157
- - app/javascript/src/base.js
1158
- - app/javascript/src/effects.js
1159
- - app/javascript/src/ext/inflector.js
1160
- - app/javascript/src/ext/jsDraw2D.js
1161
- - app/javascript/src/ext/keyboard_1_36.js
1162
- - app/javascript/src/ext/keyboard_1_44.js
1163
- - app/javascript/src/ext/keyboard_1_49.js
1164
- - app/javascript/src/ext/md5.js
1165
- - app/javascript/src/ext/shortcut.js
1166
- - app/javascript/src/init.js
1167
- - app/javascript/src/language.js
1168
- - app/javascript/src/logger.js
1169
- - app/javascript/src/prototype/effects.js
1170
- - app/javascript/src/proxy.js
1171
- - app/javascript/src/rules/date_rule.js
1172
- - app/javascript/src/rules/gender_list_rule.js
1173
- - app/javascript/src/rules/gender_rule.js
1174
- - app/javascript/src/rules/language_rule.js
1175
- - app/javascript/src/rules/list_rule.js
1176
- - app/javascript/src/rules/numeric_rule.js
1177
- - app/javascript/src/tml/label.js
1178
- - app/javascript/src/tml/token.js
1179
- - app/javascript/src/tokens/data_token.js
1180
- - app/javascript/src/tokens/decoration_token.js
1181
- - app/javascript/src/tokens/token.js
1182
- - app/javascript/src/tokens/transform_token.js
1183
- - app/javascript/src/translation_key.js
1184
- - app/javascript/src/ui/language_case_manager.js
1185
- - app/javascript/src/ui/language_selector.js
1186
- - app/javascript/src/ui/lightbox.js
1187
- - app/javascript/src/ui/translator.js
1188
- - app/javascript/src/utils.js
1189
1113
  - local/tr8n_server/Rakefile
1190
1114
  - local/tr8n_server/app/assets/javascripts/application.js
1191
1115
  - local/tr8n_server/app/assets/stylesheets/admin.css.scss
@@ -1,37 +0,0 @@
1
- # https://developers.google.com/closure/compiler/
2
- # http://developer.yahoo.com/yui/compressor
3
-
4
- require 'pp'
5
- require 'yaml'
6
- require 'fssm'
7
-
8
- pp "Started monitoring ./src folder. To stop use Ctrl+C."
9
-
10
- FSSM.monitor('./src/', '**/*') do
11
- update do |base, relative|
12
- pp "#{relative} file changed"
13
- compile
14
- end
15
-
16
- delete do |base, relative|
17
- pp "#{relative} deleted"
18
- compile
19
- end
20
-
21
- create do |base, relative|
22
- pp "#{relative} created"
23
- compile
24
- end
25
-
26
- def config
27
- @config ||= YAML.load_file("config.yml")
28
- end
29
-
30
- def compile
31
- command = "java -jar compressors/google/compiler.jar --js #{config['all']} --js_output_file ../assets/javascripts/tr8n/tr8n-compiled.js; echo 'Done'"
32
- pp command
33
- Kernel.spawn(command)
34
- end
35
-
36
- end
37
-
@@ -1 +0,0 @@
1
- ruby compile.rb
@@ -1,202 +0,0 @@
1
-
2
- Apache License
3
- Version 2.0, January 2004
4
- http://www.apache.org/licenses/
5
-
6
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
-
8
- 1. Definitions.
9
-
10
- "License" shall mean the terms and conditions for use, reproduction,
11
- and distribution as defined by Sections 1 through 9 of this document.
12
-
13
- "Licensor" shall mean the copyright owner or entity authorized by
14
- the copyright owner that is granting the License.
15
-
16
- "Legal Entity" shall mean the union of the acting entity and all
17
- other entities that control, are controlled by, or are under common
18
- control with that entity. For the purposes of this definition,
19
- "control" means (i) the power, direct or indirect, to cause the
20
- direction or management of such entity, whether by contract or
21
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
- outstanding shares, or (iii) beneficial ownership of such entity.
23
-
24
- "You" (or "Your") shall mean an individual or Legal Entity
25
- exercising permissions granted by this License.
26
-
27
- "Source" form shall mean the preferred form for making modifications,
28
- including but not limited to software source code, documentation
29
- source, and configuration files.
30
-
31
- "Object" form shall mean any form resulting from mechanical
32
- transformation or translation of a Source form, including but
33
- not limited to compiled object code, generated documentation,
34
- and conversions to other media types.
35
-
36
- "Work" shall mean the work of authorship, whether in Source or
37
- Object form, made available under the License, as indicated by a
38
- copyright notice that is included in or attached to the work
39
- (an example is provided in the Appendix below).
40
-
41
- "Derivative Works" shall mean any work, whether in Source or Object
42
- form, that is based on (or derived from) the Work and for which the
43
- editorial revisions, annotations, elaborations, or other modifications
44
- represent, as a whole, an original work of authorship. For the purposes
45
- of this License, Derivative Works shall not include works that remain
46
- separable from, or merely link (or bind by name) to the interfaces of,
47
- the Work and Derivative Works thereof.
48
-
49
- "Contribution" shall mean any work of authorship, including
50
- the original version of the Work and any modifications or additions
51
- to that Work or Derivative Works thereof, that is intentionally
52
- submitted to Licensor for inclusion in the Work by the copyright owner
53
- or by an individual or Legal Entity authorized to submit on behalf of
54
- the copyright owner. For the purposes of this definition, "submitted"
55
- means any form of electronic, verbal, or written communication sent
56
- to the Licensor or its representatives, including but not limited to
57
- communication on electronic mailing lists, source code control systems,
58
- and issue tracking systems that are managed by, or on behalf of, the
59
- Licensor for the purpose of discussing and improving the Work, but
60
- excluding communication that is conspicuously marked or otherwise
61
- designated in writing by the copyright owner as "Not a Contribution."
62
-
63
- "Contributor" shall mean Licensor and any individual or Legal Entity
64
- on behalf of whom a Contribution has been received by Licensor and
65
- subsequently incorporated within the Work.
66
-
67
- 2. Grant of Copyright License. Subject to the terms and conditions of
68
- this License, each Contributor hereby grants to You a perpetual,
69
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
- copyright license to reproduce, prepare Derivative Works of,
71
- publicly display, publicly perform, sublicense, and distribute the
72
- Work and such Derivative Works in Source or Object form.
73
-
74
- 3. Grant of Patent License. Subject to the terms and conditions of
75
- this License, each Contributor hereby grants to You a perpetual,
76
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
- (except as stated in this section) patent license to make, have made,
78
- use, offer to sell, sell, import, and otherwise transfer the Work,
79
- where such license applies only to those patent claims licensable
80
- by such Contributor that are necessarily infringed by their
81
- Contribution(s) alone or by combination of their Contribution(s)
82
- with the Work to which such Contribution(s) was submitted. If You
83
- institute patent litigation against any entity (including a
84
- cross-claim or counterclaim in a lawsuit) alleging that the Work
85
- or a Contribution incorporated within the Work constitutes direct
86
- or contributory patent infringement, then any patent licenses
87
- granted to You under this License for that Work shall terminate
88
- as of the date such litigation is filed.
89
-
90
- 4. Redistribution. You may reproduce and distribute copies of the
91
- Work or Derivative Works thereof in any medium, with or without
92
- modifications, and in Source or Object form, provided that You
93
- meet the following conditions:
94
-
95
- (a) You must give any other recipients of the Work or
96
- Derivative Works a copy of this License; and
97
-
98
- (b) You must cause any modified files to carry prominent notices
99
- stating that You changed the files; and
100
-
101
- (c) You must retain, in the Source form of any Derivative Works
102
- that You distribute, all copyright, patent, trademark, and
103
- attribution notices from the Source form of the Work,
104
- excluding those notices that do not pertain to any part of
105
- the Derivative Works; and
106
-
107
- (d) If the Work includes a "NOTICE" text file as part of its
108
- distribution, then any Derivative Works that You distribute must
109
- include a readable copy of the attribution notices contained
110
- within such NOTICE file, excluding those notices that do not
111
- pertain to any part of the Derivative Works, in at least one
112
- of the following places: within a NOTICE text file distributed
113
- as part of the Derivative Works; within the Source form or
114
- documentation, if provided along with the Derivative Works; or,
115
- within a display generated by the Derivative Works, if and
116
- wherever such third-party notices normally appear. The contents
117
- of the NOTICE file are for informational purposes only and
118
- do not modify the License. You may add Your own attribution
119
- notices within Derivative Works that You distribute, alongside
120
- or as an addendum to the NOTICE text from the Work, provided
121
- that such additional attribution notices cannot be construed
122
- as modifying the License.
123
-
124
- You may add Your own copyright statement to Your modifications and
125
- may provide additional or different license terms and conditions
126
- for use, reproduction, or distribution of Your modifications, or
127
- for any such Derivative Works as a whole, provided Your use,
128
- reproduction, and distribution of the Work otherwise complies with
129
- the conditions stated in this License.
130
-
131
- 5. Submission of Contributions. Unless You explicitly state otherwise,
132
- any Contribution intentionally submitted for inclusion in the Work
133
- by You to the Licensor shall be under the terms and conditions of
134
- this License, without any additional terms or conditions.
135
- Notwithstanding the above, nothing herein shall supersede or modify
136
- the terms of any separate license agreement you may have executed
137
- with Licensor regarding such Contributions.
138
-
139
- 6. Trademarks. This License does not grant permission to use the trade
140
- names, trademarks, service marks, or product names of the Licensor,
141
- except as required for reasonable and customary use in describing the
142
- origin of the Work and reproducing the content of the NOTICE file.
143
-
144
- 7. Disclaimer of Warranty. Unless required by applicable law or
145
- agreed to in writing, Licensor provides the Work (and each
146
- Contributor provides its Contributions) on an "AS IS" BASIS,
147
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
- implied, including, without limitation, any warranties or conditions
149
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
- PARTICULAR PURPOSE. You are solely responsible for determining the
151
- appropriateness of using or redistributing the Work and assume any
152
- risks associated with Your exercise of permissions under this License.
153
-
154
- 8. Limitation of Liability. In no event and under no legal theory,
155
- whether in tort (including negligence), contract, or otherwise,
156
- unless required by applicable law (such as deliberate and grossly
157
- negligent acts) or agreed to in writing, shall any Contributor be
158
- liable to You for damages, including any direct, indirect, special,
159
- incidental, or consequential damages of any character arising as a
160
- result of this License or out of the use or inability to use the
161
- Work (including but not limited to damages for loss of goodwill,
162
- work stoppage, computer failure or malfunction, or any and all
163
- other commercial damages or losses), even if such Contributor
164
- has been advised of the possibility of such damages.
165
-
166
- 9. Accepting Warranty or Additional Liability. While redistributing
167
- the Work or Derivative Works thereof, You may choose to offer,
168
- and charge a fee for, acceptance of support, warranty, indemnity,
169
- or other liability obligations and/or rights consistent with this
170
- License. However, in accepting such obligations, You may act only
171
- on Your own behalf and on Your sole responsibility, not on behalf
172
- of any other Contributor, and only if You agree to indemnify,
173
- defend, and hold each Contributor harmless for any liability
174
- incurred by, or claims asserted against, such Contributor by reason
175
- of your accepting any such warranty or additional liability.
176
-
177
- END OF TERMS AND CONDITIONS
178
-
179
- APPENDIX: How to apply the Apache License to your work.
180
-
181
- To apply the Apache License to your work, attach the following
182
- boilerplate notice, with the fields enclosed by brackets "[]"
183
- replaced with your own identifying information. (Don't include
184
- the brackets!) The text should be enclosed in the appropriate
185
- comment syntax for the file format. We also recommend that a
186
- file or class name and description of purpose be included on the
187
- same "printed page" as the copyright notice for easier
188
- identification within third-party archives.
189
-
190
- Copyright [yyyy] [name of copyright owner]
191
-
192
- Licensed under the Apache License, Version 2.0 (the "License");
193
- you may not use this file except in compliance with the License.
194
- You may obtain a copy of the License at
195
-
196
- http://www.apache.org/licenses/LICENSE-2.0
197
-
198
- Unless required by applicable law or agreed to in writing, software
199
- distributed under the License is distributed on an "AS IS" BASIS,
200
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
- See the License for the specific language governing permissions and
202
- limitations under the License.