browser_warrior 0.1.0 → 0.2.0
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aec36d9d5a3ef627496379991ab4edad647cdc0e
|
4
|
+
data.tar.gz: eefa9a4ad8c935c70d760820e483a6fc19ab2007
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70ea3c1fafc777500a5ee7cc27daf5e080ddb4132f34f7b1bd685a7c470ad5e9fc528a0586bacac49fe0b4cb6de898cc78cd15b80527deb5eee98d1d35855025
|
7
|
+
data.tar.gz: 23349cbe405716c1bef53e767f2f608421735c070da99338897137038ba4088e2f931f55eb23ea6c270bc866309b4de29adeb97ecaa62a91aca764bd02f6eb66
|
data/README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# BrowserWarrior
|
2
2
|
|
3
|
-
Are you a warrior to reject your ie 6/7/8 user?
|
3
|
+
Are you a warrior? Do you dare to reject your ie 6/7/8 user?
|
4
4
|
|
5
|
-
Yes, we should say YES.
|
5
|
+
Yes, at now we should say YES.
|
6
6
|
|
7
|
-
**BrowserWarrior** make
|
7
|
+
**BrowserWarrior** make the action super easy.
|
8
8
|
|
9
|
-
Make your Ruby on Rails Application rejecting ie6/7/8 with only one line code.
|
9
|
+
Make your Ruby on Rails 5 Application rejecting ie6/7/8 with only one line code. ( Notice: only support Rails 5 now, we will do more work to support 4 & 3 )
|
10
10
|
|
11
11
|
```ruby
|
12
12
|
# in your Gemfile
|
@@ -59,8 +59,10 @@ Easy, is it?
|
|
59
59
|
|
60
60
|
## TODO
|
61
61
|
|
62
|
-
|
63
|
-
|
62
|
+
- [x] Release 0.1.0, one line code to support rejecting old browser page
|
63
|
+
- [ ] I18n support
|
64
|
+
- [ ] Extend support rails 4 and rails 3.
|
65
|
+
- [ ] Design a mechanism to support more than one themes.
|
64
66
|
|
65
67
|
## Contributing
|
66
68
|
[windy](https://github.com/windy)
|
data/lib/browser_warrior.rb
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
module BrowserWarrior
|
2
|
+
module Generators
|
3
|
+
class ViewsGenerator < Rails::Generators::Base
|
4
|
+
source_root ::BrowserWarrior::ROOT
|
5
|
+
desc "Copy views & css files into main app"
|
6
|
+
|
7
|
+
def copy_views
|
8
|
+
copy_file "app/views/browser_warrior/index.html.erb", "app/views/browser_warrior/index.html.erb"
|
9
|
+
end
|
10
|
+
|
11
|
+
def copy_css_image
|
12
|
+
copy_file "app/assets/stylesheets/browser_warrior/application.scss", "app/assets/stylesheets/browser_warrior/application.scss"
|
13
|
+
copy_file "app/assets/images/browser_warrior/chrome.png", "app/assets/images/browser_warrior/chrome.png"
|
14
|
+
copy_file "app/assets/images/browser_warrior/firefox.png", "app/assets/images/browser_warrior/firefox.png"
|
15
|
+
copy_file "app/assets/images/browser_warrior/ie.png", "app/assets/images/browser_warrior/ie.png"
|
16
|
+
copy_file "app/assets/images/browser_warrior/opera.png", "app/assets/images/browser_warrior/opera.png"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: browser_warrior
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yafeilee
|
@@ -103,6 +103,8 @@ files:
|
|
103
103
|
- lib/generators/browser_warrior/install/USAGE
|
104
104
|
- lib/generators/browser_warrior/install/install_generator.rb
|
105
105
|
- lib/generators/browser_warrior/install/templates/browser_warrior.rb
|
106
|
+
- lib/generators/browser_warrior/views/USAGE
|
107
|
+
- lib/generators/browser_warrior/views/views_generator.rb
|
106
108
|
homepage: https://github.com/80percent/browser_warrior
|
107
109
|
licenses:
|
108
110
|
- MIT
|