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: f97c57cb27ab03816722a3b38d19ce3010264a27
4
- data.tar.gz: cb3987c4df2ff6a093c5cb9a0bcc25667ae87549
3
+ metadata.gz: aec36d9d5a3ef627496379991ab4edad647cdc0e
4
+ data.tar.gz: eefa9a4ad8c935c70d760820e483a6fc19ab2007
5
5
  SHA512:
6
- metadata.gz: 35a20cc3858ab6f1d5e107440f9de2aebc4838994f6515e9bf90a18b3bf36f9611ef06e36b6be7557a3e1599fb6ef321cf1b692da73ba64cd6897ab890b14341
7
- data.tar.gz: aa7d7d0b4d25bd6f0f892a68b40d73a1dce5267ef0401b9457135a0915dec7e64616f8902fc48f01e0a4c8f33b004f2f46461b689b109b903105970278b8e58a
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 it super easy.
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
- * i18n support
63
- * extend support rails 4 or 3.
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)
@@ -4,6 +4,8 @@ require 'browser'
4
4
 
5
5
  module BrowserWarrior
6
6
 
7
+ ROOT = File.expand_path(File.join( File.dirname(__FILE__), '..'))
8
+
7
9
  module Controllers
8
10
  module Helpers
9
11
  extend ActiveSupport::Concern
@@ -1,3 +1,3 @@
1
1
  module BrowserWarrior
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end
@@ -0,0 +1,5 @@
1
+ Description:
2
+ Copy views & css files into main app
3
+
4
+ Example:
5
+ rails generate browser_warrior:views
@@ -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.1.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