we_bridge_rails_engine_orgs 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +34 -0
- data/Gemfile.lock +251 -0
- data/LICENSE.txt +21 -0
- data/MIT-LICENSE +20 -0
- data/README.md +41 -0
- data/README.rdoc +3 -0
- data/Rakefile +37 -0
- data/app/assets/javascripts/org_activities.js +2 -0
- data/app/assets/javascripts/org_branches.js +2 -0
- data/app/assets/javascripts/org_director_types.js +2 -0
- data/app/assets/javascripts/org_directors.js +2 -0
- data/app/assets/javascripts/org_member_tags.js +2 -0
- data/app/assets/javascripts/org_member_types.js +2 -0
- data/app/assets/javascripts/org_members.js +2 -0
- data/app/assets/javascripts/orgs.js +2 -0
- data/app/assets/stylesheets/org_activities.css +4 -0
- data/app/assets/stylesheets/org_branches.css +4 -0
- data/app/assets/stylesheets/org_director_types.css +4 -0
- data/app/assets/stylesheets/org_directors.css +4 -0
- data/app/assets/stylesheets/org_member_tags.css +4 -0
- data/app/assets/stylesheets/org_member_types.css +4 -0
- data/app/assets/stylesheets/org_members.css +4 -0
- data/app/assets/stylesheets/orgs.css +4 -0
- data/app/assets/stylesheets/scaffold.css +56 -0
- data/app/controllers/org_activities_controller.rb +8 -0
- data/app/controllers/org_branch_types_controller.rb +9 -0
- data/app/controllers/org_branches_controller.rb +9 -0
- data/app/controllers/org_director_types_controller.rb +8 -0
- data/app/controllers/org_directors_controller.rb +8 -0
- data/app/controllers/org_member_tags_controller.rb +8 -0
- data/app/controllers/org_member_types_controller.rb +8 -0
- data/app/controllers/org_members_controller.rb +8 -0
- data/app/controllers/orgs_controller.rb +8 -0
- data/app/helpers/org_activities_helper.rb +2 -0
- data/app/helpers/org_branches_helper.rb +2 -0
- data/app/helpers/org_director_types_helper.rb +2 -0
- data/app/helpers/org_directors_helper.rb +2 -0
- data/app/helpers/org_member_tags_helper.rb +2 -0
- data/app/helpers/org_member_types_helper.rb +2 -0
- data/app/helpers/org_members_helper.rb +2 -0
- data/app/helpers/orgs_helper.rb +2 -0
- data/app/mailers/.keep +0 -0
- data/app/models/.keep +0 -0
- data/app/models/org.rb +11 -0
- data/app/models/org_activity.rb +8 -0
- data/app/models/org_activity_text.rb +7 -0
- data/app/models/org_branch.rb +9 -0
- data/app/models/org_branch_member_mapping.rb +4 -0
- data/app/models/org_branch_text.rb +8 -0
- data/app/models/org_branch_type.rb +11 -0
- data/app/models/org_branch_type_text.rb +9 -0
- data/app/models/org_director_type.rb +11 -0
- data/app/models/org_director_type_text.rb +8 -0
- data/app/models/org_member.rb +28 -0
- data/app/models/org_member_tag.rb +8 -0
- data/app/models/org_member_tag_mapping.rb +5 -0
- data/app/models/org_member_tag_text.rb +7 -0
- data/app/models/org_member_text.rb +22 -0
- data/app/models/org_member_type.rb +11 -0
- data/app/models/org_member_type_text.rb +8 -0
- data/app/models/org_text.rb +7 -0
- data/app/views/.keep +0 -0
- data/app/views/common/_edit.html.builder +2 -0
- data/app/views/common/_index.html.builder +1 -0
- data/app/views/common/_new.html.builder +1 -0
- data/app/views/common/_show.html.builder +1 -0
- data/app/views/org_activities/edit.html.builder +1 -0
- data/app/views/org_activities/index.html.builder +1 -0
- data/app/views/org_activities/new.html.builder +1 -0
- data/app/views/org_activities/show.html.builder +9 -0
- data/app/views/org_branch_types/edit.html.builder +1 -0
- data/app/views/org_branch_types/index.html.builder +1 -0
- data/app/views/org_branch_types/new.html.builder +1 -0
- data/app/views/org_branch_types/show.html.builder +9 -0
- data/app/views/org_branches/edit.html.builder +1 -0
- data/app/views/org_branches/index.html.builder +1 -0
- data/app/views/org_branches/new.html.builder +1 -0
- data/app/views/org_branches/show.html.builder +9 -0
- data/app/views/org_director_types/_form.html.builder +14 -0
- data/app/views/org_director_types/edit.html.builder +1 -0
- data/app/views/org_director_types/index.html.builder +1 -0
- data/app/views/org_director_types/new.html.builder +1 -0
- data/app/views/org_director_types/show.html.builder +9 -0
- data/app/views/org_directors/edit.html.builder +1 -0
- data/app/views/org_directors/index.html.builder +1 -0
- data/app/views/org_directors/new.html.builder +1 -0
- data/app/views/org_directors/show.html.builder +9 -0
- data/app/views/org_member_tags/edit.html.builder +1 -0
- data/app/views/org_member_tags/index.html.builder +1 -0
- data/app/views/org_member_tags/new.html.builder +1 -0
- data/app/views/org_member_tags/show.html.builder +9 -0
- data/app/views/org_member_types/edit.html.builder +1 -0
- data/app/views/org_member_types/index.html.builder +1 -0
- data/app/views/org_member_types/new.html.builder +1 -0
- data/app/views/org_member_types/show.html.builder +9 -0
- data/app/views/org_members/edit.html.builder +1 -0
- data/app/views/org_members/index.html.builder +1 -0
- data/app/views/org_members/new.html.builder +1 -0
- data/app/views/org_members/show.html.builder +9 -0
- data/app/views/orgs/edit.html.builder +1 -0
- data/app/views/orgs/index.html.builder +1 -0
- data/app/views/orgs/new.html.builder +1 -0
- data/app/views/orgs/show.html.builder +13 -0
- data/bin/console +14 -0
- data/bin/rails +12 -0
- data/bin/setup +7 -0
- data/config/routes.rb +11 -0
- data/db/migrate/20150812025526_create_orgs.rb +122 -0
- data/db/migrate/20150814183339_create_org_branches_table.rb +31 -0
- data/lib/tasks/we_bridge_rails_engine_orgs_tasks.rake +4 -0
- data/lib/we_bridge_rails_engine_orgs/engine.rb +13 -0
- data/lib/we_bridge_rails_engine_orgs/version.rb +3 -0
- data/lib/we_bridge_rails_engine_orgs.rb +7 -0
- data/spec/controllers/org_activities_controller_spec.rb +159 -0
- data/spec/controllers/org_branches_controller_spec.rb +159 -0
- data/spec/controllers/org_director_types_controller_spec.rb +159 -0
- data/spec/controllers/org_directors_controller_spec.rb +159 -0
- data/spec/controllers/org_member_tags_controller_spec.rb +159 -0
- data/spec/controllers/org_member_types_controller_spec.rb +159 -0
- data/spec/controllers/org_members_controller_spec.rb +159 -0
- data/spec/controllers/orgs_controller_spec.rb +159 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +16 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +8 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.builder +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config/application.rb +28 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/provider_settings.rb +2 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/omniauth.yml +63 -0
- data/spec/dummy/config/omniauth.yml.org +63 -0
- data/spec/dummy/config/routes.rb +56 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +305 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +12006 -0
- data/spec/dummy/log/test.log +154 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/0BZmBV4GBBP2mXT-Bq5KS4qdbAh_4G6nOtgCtrH4rNE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/1RRK_DyUgv8T2sFbYEG6n6-JvG3xMvlZCTYWyE_cCXU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/1bGL2UVgPNGIpbmIxMm7Zhqz1S3_5E_-hemJChBQYKI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/2fgp297hCEN9mggAbqDhssSSfNQbXHLAGYHRcoeNyMQ.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/5sfZJfc-8-coZsxWhnG7QNi9QbTQm3LuCvHanza6jVY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/6jIW5_LzHTeo0nHF3f7SOdaqy3yT35x4obLjMhvkbRQ.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/86j6jf2oNNPSVkHMTuUJoZzGYHNEvWwMfSIAh-Q_wiI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/8NqLvJ5MoVa0NPxGOKngFS4ZRsnGK6IQfHkl-U1MUrI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/C8MAmSRXsJWbTeXMvLqOrrhN_KnBi0ut8iX91fZnhLg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/DiLk-rAzABNB75ElsvKdP_Eh-V_KblIbr3U3QclyF0o.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/E8HcM2aVb1dScqT08oJRlNyfgM0-iVkTDyQcN7cddF4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/FBJ-onmDShvDUhlQ7Jacn1hS_Nju3dClO7O861-e8q8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Fwk7r3eAJYuVAYg8_pGI1Vj1UZbV-jPP93SpN8tJyPs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/GTfNHEYnjfZXZHTGQSuEEiuCakM6lcHxCCLoBYzvdew.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/HI4BM29XxjwMtmmewg36qsoObiRYy2V2GI09aG1y_EE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/HamVqV58DQAmEiKhvw9Ng_7mraOj8HKyOMsDQM19PxM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/JigkThideDLksj6ZrufTx6bLVyJBmNDbaouRbMbZdIA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/N_o3GYuVrQiNLiqimWjkHB5CJHSCC7K3Hno-XiBGa7A.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/OAgB7vSwYbsD10H3ox3vY1aEH-zUkcjF8v9YwW6EJbY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/QYjdvCmvd_aP40208t6tH0TukGVp8vqM6esnnFq0cOA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/R7QFe2khKmUZgHX-_me15tkaeNQw9v3-d_dThxjrU8s.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/S8xObcvQGG6uj1eqGy7IvL5j3qNf9tunwD6OjNQIB_8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/SDsevrzzr3Ytog2iS84FzNXGgIU7sSQkTWTIIum4coo.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/UDhlEjeIR7r4grFS_AeYBTYse5F7Ojju8yu0mScz6Ic.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/UEflM8eWRGnUEhwM2m8ZvJv1Xc807SwOZ_gUoQRxdT4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/VFEdJXCIVpXWqIFcfWoPj_KqrOCNWZ7fppjVRBFQmag.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Vs2R-eMvzDzqjlKluRmPf0JVhvWU7R94DRz7Jphhnzg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/XBt_bibQOuIG9ocaYQmJsmtJgd5BcrZ4jQ68t-439zQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/XDmpnnquS4XMFZuvuyM7io3FX2wkqXIzkTerm72ZDdo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Z9_T0XrFi2IVgHl_2slv4wpbdSa0EhpECdvLA25u9O0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/a1JHimmgPvl2EuwWDMR4OlNpJV4TufqgTpOi7Sy0TsI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/a6-MgFZdmmAL52ip1yli2iaKu4zRihIVZZPsQUaxpqI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/axFrxpUG59UHCdeJI4Kl3eOyLcRfl9uCRRi6NAgMaI4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/bme2_XB4XKGqohc1KW9Gqe-LXNbANY7bwm9oZGHaTwI.cache +3 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/c1nFo3JnHLdXWKWgLVt9jmiCmEQ2ndPoUTjNv1M1OkI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/cnXDDro8GJGKj_nlcBqX9sLGgT-w0JARPjWS5VCIRSw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/dDi4KC6wzIbiwfTi_E35Zl4Z_lErkg6q_6FK30kZLTo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eN4oUfIofrNhih1pDOVXB84IYQMEcgduHwZPSqnwIjw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/gDicoS8YCD-tJz--CXIF0afhT0rq6D_LLCh0GE7G2HI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/gDw6ULoqC7Ox2nerE01WVLVgc9XbR1WbPL-VjhbPkCA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/gRVM3WJ-shebeFmALsY4niZWEYbbzCrGP9LisSCLifg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/gVx-CmBVKIeSliU7Zb8RSFta76qvQCx1VUJhqedZdz4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/jDLYA3YpFOlifBm6AHj2J8jeacy_iljBTonj_mhod6I.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/nawE49iR8fvD7PVmDVPX_qvJCAobi3MSVVgcnibd_oQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ndmZMkzdU4-m13TcmfViszPUFu-0O_xNyv1lTqtHhkQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/oMnDzGezNNiIYic9SdXkm-yjJdYaCl7m2bHnlaFl9wg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/pzdXCzT9_-bzrPIElwqWhFt9ELoAUNtEizmWb1Tgufk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/qQhBmQ4Iwrq-oIoV6CDEB9cTt4CUDyDE6u4t9-Nz1aY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/qzfkRg1kuNevdpfIf5kcR1-9Q4buHB1dxcl03OT5iao.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/s7AiRxV9LdOVAylAE38RiKCstOIGXxlkhZ15nV8_GfY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/t3Nl1ub-k4CMd3OQC_Hmp23_aD9smrJFrL0FzajnCMk.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/u6G1NYM-f-jAFL4fAGAvCvyNa2T448YXFBCB2r6LPvA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/uBJ2DBMKAov-3rDsEAsHb0PVg0dOFcff9i0e4ESOs6c.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/wHu7ynIgCKw1GeI1xvWayqO05ZrBt_eukD-Fx249ZZ0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/wdVqCI5gqjc-qNnqeJ80WppA6paXIB4-ovEETxHP91k.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/xVM8A6y2-lU8UBw4lpLNUNMKB-LwwH01oZBu8TjnnSY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/xz0KN1Vpbne-X0aKg8iepHDn2X6_soUrkNmrQwCgPpQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ysBC3QUuPfkgfYV3nBpTw_znt9DtKC5I7erWmLCPTCM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/zd_YJiP9IEPD6jymqPu1CaH2XP0-m5SZBe9uLiYqMLI.cache +1 -0
- data/spec/dummy/tmp/pids/server.pid +1 -0
- data/spec/factories/org_activities.rb +6 -0
- data/spec/factories/org_branches.rb +6 -0
- data/spec/factories/org_director_types.rb +6 -0
- data/spec/factories/org_directors.rb +6 -0
- data/spec/factories/org_member_tags.rb +6 -0
- data/spec/factories/org_member_types.rb +6 -0
- data/spec/factories/org_members.rb +6 -0
- data/spec/factories/orgs.rb +6 -0
- data/spec/helpers/org_activities_helper_spec.rb +15 -0
- data/spec/helpers/org_branches_helper_spec.rb +15 -0
- data/spec/helpers/org_director_types_helper_spec.rb +15 -0
- data/spec/helpers/org_directors_helper_spec.rb +15 -0
- data/spec/helpers/org_member_tags_helper_spec.rb +15 -0
- data/spec/helpers/org_member_types_helper_spec.rb +15 -0
- data/spec/helpers/org_members_helper_spec.rb +15 -0
- data/spec/helpers/orgs_helper_spec.rb +15 -0
- data/spec/models/org_activity_spec.rb +5 -0
- data/spec/models/org_branch_spec.rb +5 -0
- data/spec/models/org_director_spec.rb +5 -0
- data/spec/models/org_director_type_spec.rb +5 -0
- data/spec/models/org_member_spec.rb +5 -0
- data/spec/models/org_member_tag_spec.rb +5 -0
- data/spec/models/org_member_type_spec.rb +5 -0
- data/spec/models/org_spec.rb +5 -0
- data/spec/omniauth.yml +63 -0
- data/spec/rails_helper.rb +54 -0
- data/spec/routing/org_activities_routing_spec.rb +39 -0
- data/spec/routing/org_branches_routing_spec.rb +39 -0
- data/spec/routing/org_director_types_routing_spec.rb +39 -0
- data/spec/routing/org_directors_routing_spec.rb +39 -0
- data/spec/routing/org_member_tags_routing_spec.rb +39 -0
- data/spec/routing/org_member_types_routing_spec.rb +39 -0
- data/spec/routing/org_members_routing_spec.rb +39 -0
- data/spec/routing/orgs_routing_spec.rb +39 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/views/org_activities/edit.html.builder_spec.rb +14 -0
- data/spec/views/org_activities/index.html.builder_spec.rb +14 -0
- data/spec/views/org_activities/new.html.builder_spec.rb +14 -0
- data/spec/views/org_activities/show.html.builder_spec.rb +11 -0
- data/spec/views/org_branches/edit.html.builder_spec.rb +14 -0
- data/spec/views/org_branches/index.html.builder_spec.rb +14 -0
- data/spec/views/org_branches/new.html.builder_spec.rb +14 -0
- data/spec/views/org_branches/show.html.builder_spec.rb +11 -0
- data/spec/views/org_director_types/edit.html.builder_spec.rb +14 -0
- data/spec/views/org_director_types/index.html.builder_spec.rb +14 -0
- data/spec/views/org_director_types/new.html.builder_spec.rb +14 -0
- data/spec/views/org_director_types/show.html.builder_spec.rb +11 -0
- data/spec/views/org_directors/edit.html.builder_spec.rb +14 -0
- data/spec/views/org_directors/index.html.builder_spec.rb +14 -0
- data/spec/views/org_directors/new.html.builder_spec.rb +14 -0
- data/spec/views/org_directors/show.html.builder_spec.rb +11 -0
- data/spec/views/org_member_tags/edit.html.builder_spec.rb +14 -0
- data/spec/views/org_member_tags/index.html.builder_spec.rb +14 -0
- data/spec/views/org_member_tags/new.html.builder_spec.rb +14 -0
- data/spec/views/org_member_tags/show.html.builder_spec.rb +11 -0
- data/spec/views/org_member_types/edit.html.builder_spec.rb +14 -0
- data/spec/views/org_member_types/index.html.builder_spec.rb +14 -0
- data/spec/views/org_member_types/new.html.builder_spec.rb +14 -0
- data/spec/views/org_member_types/show.html.builder_spec.rb +11 -0
- data/spec/views/org_members/edit.html.builder_spec.rb +14 -0
- data/spec/views/org_members/index.html.builder_spec.rb +14 -0
- data/spec/views/org_members/new.html.builder_spec.rb +14 -0
- data/spec/views/org_members/show.html.builder_spec.rb +11 -0
- data/spec/views/orgs/edit.html.builder_spec.rb +14 -0
- data/spec/views/orgs/index.html.builder_spec.rb +14 -0
- data/spec/views/orgs/new.html.builder_spec.rb +14 -0
- data/spec/views/orgs/show.html.builder_spec.rb +11 -0
- data/spec/we_bridge_rails_engine_orgs_spec.rb +11 -0
- data/we_bridge_rails_engine_orgs.gemspec +43 -0
- metadata +690 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 90d86a527e42296ac2627cda31dfbbef062a20f9
|
4
|
+
data.tar.gz: 8e9378ed2c4fe872247ae834270469e7b3b0a14c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 03886baf24544957a4e3af5c965be77e35b8cedb620bed187842727ceb07d60207ebc829b31aa758e9160b73299c133beaf3f605b9c24ce1bb2476f49a28a2ef
|
7
|
+
data.tar.gz: 4443c8d932e085e4b5e8220088704626c82cf4c39a7749d6f2f68ccd325b9918780c3223f435e5f8dcf5c78e262f9b9740f95bec99573dd20d1bab2edfb1b69a
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
+
|
5
|
+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
|
6
|
+
|
7
|
+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
+
|
9
|
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
+
|
11
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
+
|
13
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/Gemfile
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Declare your gem's dependencies in we_bridge_rails_engine_users.gemspec.
|
4
|
+
# Bundler will treat runtime dependencies like base dependencies, and
|
5
|
+
# development dependencies will be added by default to the :development group.
|
6
|
+
gemspec
|
7
|
+
|
8
|
+
# Declare any dependencies that are still in development here instead of in
|
9
|
+
# your gemspec. These might include edge Rails or gems from your path or
|
10
|
+
# Git. Remember to move these dependencies to your gemspec before releasing
|
11
|
+
# your gem to rubygems.org.
|
12
|
+
|
13
|
+
# To use a debugger
|
14
|
+
# gem 'byebug', group: [:development, :test]
|
15
|
+
|
16
|
+
gem 'activerecord-mlang'
|
17
|
+
# gem 'we_bridge-html_builder', group: [:production]
|
18
|
+
# gem 'we_bridge-html_builder', '>= 0.2' # github: 'baseball-bridge/we_bridge-html_builder'
|
19
|
+
gem 'we_bridge-html_builder' # , path: '../we_bridge-html_builder'
|
20
|
+
gem 'actionview-helpers-auto_tag_helper'
|
21
|
+
# gem 'we_bridge-auto_view_helper'
|
22
|
+
gem 'we_bridge-auto_view_helper'
|
23
|
+
|
24
|
+
# error handling
|
25
|
+
gem 'we_bridge-exceptions', ">= 0.1.1"
|
26
|
+
gem 'we_bridge_rails_engine_langs'
|
27
|
+
gem 'we_bridge_rails_engine_users'
|
28
|
+
|
29
|
+
group :development, :test do
|
30
|
+
gem 'rspec-rails'
|
31
|
+
gem 'factory_girl_rails'
|
32
|
+
gem 'jquery-rails'
|
33
|
+
end
|
34
|
+
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,251 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
we_bridge_rails_engine_orgs (0.1.0)
|
5
|
+
actionview-helpers-auto_tag_helper
|
6
|
+
activerecord-mlang
|
7
|
+
we_bridge-auto_view_helper
|
8
|
+
we_bridge-exceptions (>= 0.1.1)
|
9
|
+
we_bridge-html_builder
|
10
|
+
we_bridge_rails_engine_langs
|
11
|
+
we_bridge_rails_engine_users
|
12
|
+
|
13
|
+
GEM
|
14
|
+
remote: https://rubygems.org/
|
15
|
+
specs:
|
16
|
+
actionmailer (4.2.3)
|
17
|
+
actionpack (= 4.2.3)
|
18
|
+
actionview (= 4.2.3)
|
19
|
+
activejob (= 4.2.3)
|
20
|
+
mail (~> 2.5, >= 2.5.4)
|
21
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
22
|
+
actionpack (4.2.3)
|
23
|
+
actionview (= 4.2.3)
|
24
|
+
activesupport (= 4.2.3)
|
25
|
+
rack (~> 1.6)
|
26
|
+
rack-test (~> 0.6.2)
|
27
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
28
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
29
|
+
actionview (4.2.3)
|
30
|
+
activesupport (= 4.2.3)
|
31
|
+
builder (~> 3.1)
|
32
|
+
erubis (~> 2.7.0)
|
33
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
34
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
35
|
+
actionview-helpers-auto_tag_helper (0.1.3)
|
36
|
+
actionview
|
37
|
+
activesupport (>= 4.2.3)
|
38
|
+
activejob (4.2.3)
|
39
|
+
activesupport (= 4.2.3)
|
40
|
+
globalid (>= 0.3.0)
|
41
|
+
activemodel (4.2.3)
|
42
|
+
activesupport (= 4.2.3)
|
43
|
+
builder (~> 3.1)
|
44
|
+
activerecord (4.2.3)
|
45
|
+
activemodel (= 4.2.3)
|
46
|
+
activesupport (= 4.2.3)
|
47
|
+
arel (~> 6.0)
|
48
|
+
activerecord-mlang (0.0.7)
|
49
|
+
activerecord
|
50
|
+
i18n
|
51
|
+
activerecord-session_store (0.1.1)
|
52
|
+
actionpack (>= 4.0.0, < 5)
|
53
|
+
activerecord (>= 4.0.0, < 5)
|
54
|
+
railties (>= 4.0.0, < 5)
|
55
|
+
activesupport (4.2.3)
|
56
|
+
i18n (~> 0.7)
|
57
|
+
json (~> 1.7, >= 1.7.7)
|
58
|
+
minitest (~> 5.1)
|
59
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
60
|
+
tzinfo (~> 1.1)
|
61
|
+
arel (6.0.3)
|
62
|
+
builder (3.2.2)
|
63
|
+
diff-lcs (1.2.5)
|
64
|
+
erubis (2.7.0)
|
65
|
+
factory_girl (4.5.0)
|
66
|
+
activesupport (>= 3.0.0)
|
67
|
+
factory_girl_rails (4.5.0)
|
68
|
+
factory_girl (~> 4.5.0)
|
69
|
+
railties (>= 3.0.0)
|
70
|
+
faraday (0.9.1)
|
71
|
+
multipart-post (>= 1.2, < 3)
|
72
|
+
globalid (0.3.6)
|
73
|
+
activesupport (>= 4.1.0)
|
74
|
+
hashie (3.4.2)
|
75
|
+
i18n (0.7.0)
|
76
|
+
jquery-rails (4.0.4)
|
77
|
+
rails-dom-testing (~> 1.0)
|
78
|
+
railties (>= 4.2.0)
|
79
|
+
thor (>= 0.14, < 2.0)
|
80
|
+
json (1.8.3)
|
81
|
+
jwt (1.5.1)
|
82
|
+
loofah (2.0.2)
|
83
|
+
nokogiri (>= 1.5.9)
|
84
|
+
mail (2.6.3)
|
85
|
+
mime-types (>= 1.16, < 3)
|
86
|
+
mime-types (2.6.1)
|
87
|
+
mini_portile (0.6.2)
|
88
|
+
minitest (5.8.0)
|
89
|
+
multi_json (1.11.2)
|
90
|
+
multi_xml (0.5.5)
|
91
|
+
multipart-post (2.0.0)
|
92
|
+
nokogiri (1.6.6.2)
|
93
|
+
mini_portile (~> 0.6.0)
|
94
|
+
oauth (0.4.7)
|
95
|
+
oauth2 (1.0.0)
|
96
|
+
faraday (>= 0.8, < 0.10)
|
97
|
+
jwt (~> 1.0)
|
98
|
+
multi_json (~> 1.3)
|
99
|
+
multi_xml (~> 0.5)
|
100
|
+
rack (~> 1.2)
|
101
|
+
omniauth (1.2.2)
|
102
|
+
hashie (>= 1.2, < 4)
|
103
|
+
rack (~> 1.0)
|
104
|
+
omniauth-dropbox (0.2.0)
|
105
|
+
omniauth-oauth (~> 1.0)
|
106
|
+
omniauth-facebook (2.0.1)
|
107
|
+
omniauth-oauth2 (~> 1.2)
|
108
|
+
omniauth-github (1.1.2)
|
109
|
+
omniauth (~> 1.0)
|
110
|
+
omniauth-oauth2 (~> 1.1)
|
111
|
+
omniauth-google-oauth2 (0.2.6)
|
112
|
+
omniauth (> 1.0)
|
113
|
+
omniauth-oauth2 (~> 1.1)
|
114
|
+
omniauth-hatena (0.0.4)
|
115
|
+
multi_json (~> 1.3)
|
116
|
+
omniauth-oauth (~> 1.0)
|
117
|
+
omniauth-linkedin (0.2.0)
|
118
|
+
omniauth-oauth (~> 1.0)
|
119
|
+
omniauth-mixi (1.0.0)
|
120
|
+
omniauth (~> 1.0)
|
121
|
+
omniauth-oauth2 (~> 1.1)
|
122
|
+
omniauth-oauth (1.1.0)
|
123
|
+
oauth
|
124
|
+
omniauth (~> 1.0)
|
125
|
+
omniauth-oauth2 (1.3.1)
|
126
|
+
oauth2 (~> 1.0)
|
127
|
+
omniauth (~> 1.2)
|
128
|
+
omniauth-twitter (1.2.1)
|
129
|
+
json (~> 1.3)
|
130
|
+
omniauth-oauth (~> 1.1)
|
131
|
+
omniauth-yahoo (0.0.6)
|
132
|
+
omniauth-oauth (~> 1.0)
|
133
|
+
omniauth-youtube (2.1)
|
134
|
+
omniauth-oauth2 (~> 1.0)
|
135
|
+
rack (1.6.4)
|
136
|
+
rack-test (0.6.3)
|
137
|
+
rack (>= 1.0)
|
138
|
+
rails (4.2.3)
|
139
|
+
actionmailer (= 4.2.3)
|
140
|
+
actionpack (= 4.2.3)
|
141
|
+
actionview (= 4.2.3)
|
142
|
+
activejob (= 4.2.3)
|
143
|
+
activemodel (= 4.2.3)
|
144
|
+
activerecord (= 4.2.3)
|
145
|
+
activesupport (= 4.2.3)
|
146
|
+
bundler (>= 1.3.0, < 2.0)
|
147
|
+
railties (= 4.2.3)
|
148
|
+
sprockets-rails
|
149
|
+
rails-deprecated_sanitizer (1.0.3)
|
150
|
+
activesupport (>= 4.2.0.alpha)
|
151
|
+
rails-dom-testing (1.0.7)
|
152
|
+
activesupport (>= 4.2.0.beta, < 5.0)
|
153
|
+
nokogiri (~> 1.6.0)
|
154
|
+
rails-deprecated_sanitizer (>= 1.0.1)
|
155
|
+
rails-html-sanitizer (1.0.2)
|
156
|
+
loofah (~> 2.0)
|
157
|
+
railties (4.2.3)
|
158
|
+
actionpack (= 4.2.3)
|
159
|
+
activesupport (= 4.2.3)
|
160
|
+
rake (>= 0.8.7)
|
161
|
+
thor (>= 0.18.1, < 2.0)
|
162
|
+
rake (10.4.2)
|
163
|
+
rspec (3.3.0)
|
164
|
+
rspec-core (~> 3.3.0)
|
165
|
+
rspec-expectations (~> 3.3.0)
|
166
|
+
rspec-mocks (~> 3.3.0)
|
167
|
+
rspec-core (3.3.2)
|
168
|
+
rspec-support (~> 3.3.0)
|
169
|
+
rspec-expectations (3.3.1)
|
170
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
171
|
+
rspec-support (~> 3.3.0)
|
172
|
+
rspec-mocks (3.3.2)
|
173
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
174
|
+
rspec-support (~> 3.3.0)
|
175
|
+
rspec-rails (3.3.3)
|
176
|
+
actionpack (>= 3.0, < 4.3)
|
177
|
+
activesupport (>= 3.0, < 4.3)
|
178
|
+
railties (>= 3.0, < 4.3)
|
179
|
+
rspec-core (~> 3.3.0)
|
180
|
+
rspec-expectations (~> 3.3.0)
|
181
|
+
rspec-mocks (~> 3.3.0)
|
182
|
+
rspec-support (~> 3.3.0)
|
183
|
+
rspec-support (3.3.0)
|
184
|
+
sprockets (3.3.0)
|
185
|
+
rack (~> 1.0)
|
186
|
+
sprockets-rails (2.3.2)
|
187
|
+
actionpack (>= 3.0)
|
188
|
+
activesupport (>= 3.0)
|
189
|
+
sprockets (>= 2.8, < 4.0)
|
190
|
+
sqlite3 (1.3.10)
|
191
|
+
thor (0.19.1)
|
192
|
+
thread_safe (0.3.5)
|
193
|
+
tzinfo (1.2.2)
|
194
|
+
thread_safe (~> 0.1)
|
195
|
+
we_bridge-auto_view_helper (0.0.10)
|
196
|
+
actionview
|
197
|
+
actionview-helpers-auto_tag_helper
|
198
|
+
activerecord-mlang
|
199
|
+
we_bridge-exceptions (0.1.1)
|
200
|
+
rails (>= 3)
|
201
|
+
we_bridge-html_builder (0.1.7)
|
202
|
+
nokogiri
|
203
|
+
we_bridge_rails_engine_langs (0.1.6)
|
204
|
+
actionview-helpers-auto_tag_helper
|
205
|
+
activerecord-mlang
|
206
|
+
rails (~> 4.2.3)
|
207
|
+
we_bridge-auto_view_helper
|
208
|
+
we_bridge-html_builder
|
209
|
+
we_bridge_rails_engine_users (0.1.4)
|
210
|
+
actionview-helpers-auto_tag_helper
|
211
|
+
activerecord-mlang
|
212
|
+
activerecord-session_store
|
213
|
+
omniauth
|
214
|
+
omniauth-dropbox
|
215
|
+
omniauth-facebook
|
216
|
+
omniauth-github
|
217
|
+
omniauth-google-oauth2
|
218
|
+
omniauth-hatena
|
219
|
+
omniauth-linkedin
|
220
|
+
omniauth-mixi
|
221
|
+
omniauth-twitter
|
222
|
+
omniauth-yahoo
|
223
|
+
omniauth-youtube
|
224
|
+
rails (~> 4.2.3)
|
225
|
+
we_bridge-auto_view_helper
|
226
|
+
we_bridge-exceptions (>= 0.1.1)
|
227
|
+
we_bridge-html_builder
|
228
|
+
we_bridge_rails_engine_langs
|
229
|
+
|
230
|
+
PLATFORMS
|
231
|
+
ruby
|
232
|
+
|
233
|
+
DEPENDENCIES
|
234
|
+
actionview-helpers-auto_tag_helper
|
235
|
+
activerecord-mlang
|
236
|
+
bundler (~> 1.10)
|
237
|
+
factory_girl_rails
|
238
|
+
jquery-rails
|
239
|
+
rake (~> 10.0)
|
240
|
+
rspec
|
241
|
+
rspec-rails
|
242
|
+
sqlite3
|
243
|
+
we_bridge-auto_view_helper
|
244
|
+
we_bridge-exceptions (>= 0.1.1)
|
245
|
+
we_bridge-html_builder
|
246
|
+
we_bridge_rails_engine_langs
|
247
|
+
we_bridge_rails_engine_orgs!
|
248
|
+
we_bridge_rails_engine_users
|
249
|
+
|
250
|
+
BUNDLED WITH
|
251
|
+
1.10.3
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Shinjiro Itagaki
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2015 Shinjiro Itagaki
|
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.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# WeBridgeRailsEngineOrgs
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/we_bridge_rails_engine_orgs`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'we_bridge_rails_engine_orgs'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install we_bridge_rails_engine_orgs
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/we_bridge_rails_engine_orgs. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
+
|
data/README.rdoc
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
begin
|
2
|
+
require 'bundler/setup'
|
3
|
+
rescue LoadError
|
4
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'rdoc/task'
|
8
|
+
|
9
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
+
rdoc.rdoc_dir = 'rdoc'
|
11
|
+
rdoc.title = 'WeBridgeRailsEngineOrgs'
|
12
|
+
rdoc.options << '--line-numbers'
|
13
|
+
rdoc.rdoc_files.include('README.rdoc')
|
14
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
+
end
|
16
|
+
|
17
|
+
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
|
18
|
+
load 'rails/tasks/engine.rake'
|
19
|
+
|
20
|
+
|
21
|
+
load 'rails/tasks/statistics.rake'
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
Bundler::GemHelper.install_tasks
|
26
|
+
|
27
|
+
require 'rake/testtask'
|
28
|
+
|
29
|
+
Rake::TestTask.new(:test) do |t|
|
30
|
+
t.libs << 'lib'
|
31
|
+
t.libs << 'test'
|
32
|
+
t.pattern = 'test/**/*_test.rb'
|
33
|
+
t.verbose = false
|
34
|
+
end
|
35
|
+
|
36
|
+
|
37
|
+
task default: :test
|
@@ -0,0 +1,56 @@
|
|
1
|
+
body { background-color: #fff; color: #333; }
|
2
|
+
|
3
|
+
body, p, ol, ul, td {
|
4
|
+
font-family: verdana, arial, helvetica, sans-serif;
|
5
|
+
font-size: 13px;
|
6
|
+
line-height: 18px;
|
7
|
+
}
|
8
|
+
|
9
|
+
pre {
|
10
|
+
background-color: #eee;
|
11
|
+
padding: 10px;
|
12
|
+
font-size: 11px;
|
13
|
+
}
|
14
|
+
|
15
|
+
a { color: #000; }
|
16
|
+
a:visited { color: #666; }
|
17
|
+
a:hover { color: #fff; background-color:#000; }
|
18
|
+
|
19
|
+
div.field, div.actions {
|
20
|
+
margin-bottom: 10px;
|
21
|
+
}
|
22
|
+
|
23
|
+
#notice {
|
24
|
+
color: green;
|
25
|
+
}
|
26
|
+
|
27
|
+
.field_with_errors {
|
28
|
+
padding: 2px;
|
29
|
+
background-color: red;
|
30
|
+
display: table;
|
31
|
+
}
|
32
|
+
|
33
|
+
#error_explanation {
|
34
|
+
width: 450px;
|
35
|
+
border: 2px solid red;
|
36
|
+
padding: 7px;
|
37
|
+
padding-bottom: 0;
|
38
|
+
margin-bottom: 20px;
|
39
|
+
background-color: #f0f0f0;
|
40
|
+
}
|
41
|
+
|
42
|
+
#error_explanation h2 {
|
43
|
+
text-align: left;
|
44
|
+
font-weight: bold;
|
45
|
+
padding: 5px 5px 5px 15px;
|
46
|
+
font-size: 12px;
|
47
|
+
margin: -7px;
|
48
|
+
margin-bottom: 0px;
|
49
|
+
background-color: #c00;
|
50
|
+
color: #fff;
|
51
|
+
}
|
52
|
+
|
53
|
+
#error_explanation ul li {
|
54
|
+
font-size: 12px;
|
55
|
+
list-style: square;
|
56
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
class OrgBranchTypesController < ApplicationController
|
2
|
+
include WeBridge::AutoViewHelper::Controller
|
3
|
+
set_model OrgBranchType
|
4
|
+
before_action { @org = Org.find params[:org_id] }
|
5
|
+
before_action only: [:edit,:update,:destroy] do
|
6
|
+
login_required
|
7
|
+
# check_current_user(@record)
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
class OrgBranchesController < ApplicationController
|
2
|
+
include WeBridge::AutoViewHelper::Controller
|
3
|
+
set_model OrgBranch
|
4
|
+
before_action { @org = Org.find params[:org_id] }
|
5
|
+
before_action only: [:edit,:update,:destroy] do
|
6
|
+
login_required
|
7
|
+
# check_current_user(@record)
|
8
|
+
end
|
9
|
+
end
|