bo_gitword 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: cf4190847472bc388fb17eb70b1988af27878a32
4
+ data.tar.gz: eaff64b0de375b93f196ced553f113d01e3f1fc8
5
+ SHA512:
6
+ metadata.gz: 249a36a26c5382482dccc1b7a27b2c701f6175068c0bdd7f7a4ea1981472c047f9b34359031fa928e14278047f0e28546c10d841a095dab5ec79154762304e1e
7
+ data.tar.gz: 2e2d4bb2989f22a4cae0cf95d6994fa238d69c1a20fdb4284d840c247d0d88e04e609cbdc573c56f64108e7b88a673e1fa31af4fc723c6aa51679d846a082b43
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ # CURRENT FILE :: Gemfile
2
+ source "http://rubygems.org"
3
+ # Specify any dependencies in the gemspec
4
+ gemspec
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2017 YOURNAME
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,3 @@
1
+ = BoGitword
2
+
3
+ This project rocks and uses MIT-LICENSE.
data/Rakefile ADDED
@@ -0,0 +1,29 @@
1
+ # encoding: UTF-8
2
+ require 'rubygems'
3
+ begin
4
+ require 'bundler/setup'
5
+ rescue LoadError
6
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
7
+ end
8
+
9
+ require 'rake'
10
+ require 'rake/rdoctask'
11
+
12
+ require 'rake/testtask'
13
+
14
+ Rake::TestTask.new(:test) do |t|
15
+ t.libs << 'lib'
16
+ t.libs << 'test'
17
+ t.pattern = 'test/**/*_test.rb'
18
+ t.verbose = false
19
+ end
20
+
21
+ task :default => :test
22
+
23
+ Rake::RDocTask.new(:rdoc) do |rdoc|
24
+ rdoc.rdoc_dir = 'rdoc'
25
+ rdoc.title = 'BoGitword'
26
+ rdoc.options << '--line-numbers' << '--inline-source'
27
+ rdoc.rdoc_files.include('README.rdoc')
28
+ rdoc.rdoc_files.include('lib/**/*.rb')
29
+ end
@@ -0,0 +1,8 @@
1
+ # CURRENT FILE :: app/controllers/team_page/team_controller.rb
2
+ module BoGitword
3
+ class GithubEventController < ::ApplicationController
4
+ def index
5
+ @all_staff = BoGitwordStaff.all
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,6 @@
1
+ # CURRENT FILE :: app/models/team_page/team_member.rb
2
+ module BoGitword
3
+ class BoGitwordStaff < ActiveRecord::Base
4
+ attr_accessible :login, :cw_id, :status
5
+ end
6
+ end
@@ -0,0 +1,10 @@
1
+ <!-- CURRENT FILE :: app/views/team_page/index.html.erb -->
2
+ <ul class="team-member-list">
3
+ <% @all_staff.each do |team_member| %>
4
+ <li class="team-member">
5
+ <span class="team-member-name">
6
+ <%= team_member.cw_id %>
7
+ </span>
8
+ </li>
9
+ <% end %>
10
+ </ul>
data/config/routes.rb ADDED
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do
2
+ get "call_event" => "bo_gitword/github_event#call" , :as => :bo_gitword
3
+ end
@@ -0,0 +1,18 @@
1
+ module BoGitword
2
+ class Engine < Rails::Engine
3
+ New job openings
4
+ Great companies are looking for smart cookies like you.
5
+ Explore job opportunities →
6
+ initialize "bo_gitword.load_app_instance_data" do |app|
7
+ BoGitword.setup do |config|
8
+ config.app_root = app.root
9
+ end
10
+ end
11
+
12
+ initialize "bo_gitword.load_static_assets" do |app|
13
+ app.middleware.use ::ActionDispatch::Static, "#{root}/public"
14
+ end
15
+
16
+ end
17
+
18
+ end
@@ -0,0 +1,3 @@
1
+ module BoGitword
2
+ VERSION = "0.0.1"
3
+ end
data/lib/bo_gitword.rb ADDED
@@ -0,0 +1,18 @@
1
+ # Requires
2
+ require "active_support/dependencies"
3
+
4
+ module BoGitword
5
+
6
+ # Our host application root path
7
+ # We set this when the engine is initialized
8
+ mattr_accessor :app_root
9
+
10
+ # Yield self on setup for nice config blocks
11
+ def self.setup
12
+ yield self
13
+ end
14
+
15
+ end
16
+
17
+ # Require our engine
18
+ require "bo_gitword/engine"
@@ -0,0 +1,15 @@
1
+ # CURRENT FILE :: lib/generators/team_page/templates/migration.rb
2
+ class CreateBoGitwordStaff< ActiveRecord::Migration
3
+ def self.up
4
+ create_table :bo_gitword_staffs do |t|
5
+ t.string :login
6
+ t.string :cw_id
7
+ t.integer :status
8
+ t.timestamps
9
+ end
10
+ end
11
+
12
+ def self.down
13
+ drop_table :bo_gitword_staff
14
+ end
15
+ end
@@ -0,0 +1,22 @@
1
+ # Requires
2
+ require 'rails/generators'
3
+ require 'rails/generators/migration'
4
+
5
+ class BoGitwordGenerator < Rails::Generators::Base
6
+ include Rails::Generators::Migration
7
+ def self.source_root
8
+ @source_root ||= File.join(File.dirname(__FILE__), 'templates')
9
+ end
10
+
11
+ def self.next_migration_number(dirname)
12
+ if ActiveRecord::Base.timestamped_migrations
13
+ Time.new.utc.strftime("%Y%m%d%H%M%S")
14
+ else
15
+ "%.3d" % (current_migration_number(dirname) + 1)
16
+ end
17
+ end
18
+
19
+ def create_migration_file
20
+ migration_template 'migration.rb', 'db/migrate/create_team_members_table.rb'
21
+ end
22
+ end
metadata ADDED
@@ -0,0 +1,84 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bo_gitword
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Your Name
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-12-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 3.0.7
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 3.0.7
27
+ - !ruby/object:Gem::Dependency
28
+ name: rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 3.0.7
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 3.0.7
41
+ description: Insert BoGitword description.
42
+ email:
43
+ - your@email.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - Gemfile
49
+ - MIT-LICENSE
50
+ - README.rdoc
51
+ - Rakefile
52
+ - app/controllers/bo_gitword/github_event_controller.rb
53
+ - app/models/bo_gitword/bo_gitword_staff.rb
54
+ - app/views/bo_gitword/index.html.erb
55
+ - config/routes.rb
56
+ - lib/bo_gitword.rb
57
+ - lib/bo_gitword/engine.rb
58
+ - lib/bo_gitword/version.rb
59
+ - lib/generators/bo_gitword/templates/migration.rb
60
+ - lib/generators/bo_gitword_generator.rb
61
+ homepage: http://yourwebsite.com
62
+ licenses: []
63
+ metadata: {}
64
+ post_install_message:
65
+ rdoc_options: []
66
+ require_paths:
67
+ - lib
68
+ required_ruby_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ required_rubygems_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">"
76
+ - !ruby/object:Gem::Version
77
+ version: 1.3.6
78
+ requirements: []
79
+ rubyforge_project: bo_gitword
80
+ rubygems_version: 2.6.13
81
+ signing_key:
82
+ specification_version: 4
83
+ summary: Insert BoGitword summary.
84
+ test_files: []